public function FeaturesManager::__construct in Features 8.3
Same name and namespace in other branches
- 8.4 src/FeaturesManager.php \Drupal\features\FeaturesManager::__construct()
Constructs a FeaturesManager object.
Parameters
string $root: The app root.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory.
\Drupal\Core\Config\StorageInterface $config_storage: The target storage.
\Drupal\Core\Config\ConfigManagerInterface $config_manager: The configuration manager.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
\Drupal\config_update\ConfigRevertInterface $config_reverter: The config revert interface.
\Drupal\Core\Extension\ModuleExtensionList $module_extension_list: The module extension list service.
File
- src/
FeaturesManager.php, line 153
Class
- FeaturesManager
- The FeaturesManager provides helper functions for building packages.
Namespace
Drupal\featuresCode
public function __construct($root, EntityTypeManagerInterface $entity_type_manager, ConfigFactoryInterface $config_factory, StorageInterface $config_storage, ConfigManagerInterface $config_manager, ModuleHandlerInterface $module_handler, ConfigRevertInterface $config_reverter, ModuleExtensionList $module_extension_list) {
$this->root = $root;
$this->entityTypeManager = $entity_type_manager;
$this->configStorage = $config_storage;
$this->configManager = $config_manager;
$this->moduleHandler = $module_handler;
$this->configFactory = $config_factory;
$this->configReverter = $config_reverter;
$this->moduleExtensionList = $module_extension_list;
$this->settings = $config_factory
->getEditable('features.settings');
$this->extensionStorages = new FeaturesExtensionStoragesByDirectory($this->configStorage);
$this->extensionStorages
->addStorage(InstallStorage::CONFIG_INSTALL_DIRECTORY);
$this->extensionStorages
->addStorage(InstallStorage::CONFIG_OPTIONAL_DIRECTORY);
$this->packages = [];
$this->packagesPrefixed = FALSE;
$this->configCollection = [];
}