public function ConfigRewriter::__construct in Configuration Rewrite 8
Same name and namespace in other branches
- 8.2 src/ConfigRewriter.php \Drupal\config_rewrite\ConfigRewriter::__construct()
Constructs a new ConfigRewriter.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
\Drupal\Core\Logger\LoggerChannelInterface $logger: A logger channel.
\Drupal\Core\File\FileSystemInterface $file_system: The file system.
\Drupal\language\Config\LanguageConfigFactoryOverrideInterface|NULL $language_config_factory_override: (Optional) The language config factory override service.
File
- src/
ConfigRewriter.php, line 68
Class
- ConfigRewriter
- Provides methods to rewrite configuration.
Namespace
Drupal\config_rewriteCode
public function __construct(ConfigFactoryInterface $config_factory, ModuleHandlerInterface $module_handler, LoggerChannelInterface $logger, FileSystemInterface $file_system, $language_config_factory_override) {
$this->configFactory = $config_factory;
$this->moduleHandler = $module_handler;
$this->logger = $logger;
$this->fileSystem = $file_system;
$this->languageConfigFactoryOverride = $language_config_factory_override;
}