class ConfigReadonlyServiceProvider in Configuration Read-only mode 7
Same name and namespace in other branches
- 8 src/ConfigReadonlyServiceProvider.php \Drupal\config_readonly\ConfigReadonlyServiceProvider
Overrides CMI storage.
Hierarchy
- class \Drupal\config_readonly\ConfigReadonlyServiceProvider implements \Drupal\Core\DependencyInjection\ServiceProviderInterface, \Drupal\Core\DependencyInjection\ServiceModifierInterface
Expanded class hierarchy of ConfigReadonlyServiceProvider
File
- lib/
Drupal/ config_readonly/ ConfigReadonlyServiceProvider.php, line 19 - Contains \Drupal\config_readonly\ConfigReadonlyServiceProvider.
Namespace
Drupal\config_readonlyView source
class ConfigReadonlyServiceProvider implements ServiceProviderInterface, ServiceModifierInterface {
/**
* {@inheritdoc}
*/
public function register(ContainerBuilder $container) {
}
/**
* {@inheritdoc}
*/
public function alter(ContainerBuilder $container) {
if ($container
->getParameter('kernel.environment') !== 'install') {
$definition = $container
->getDefinition('config.storage');
$definition
->setClass('Drupal\\config_readonly\\Config\\ConfigReadonlyStorage');
}
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConfigReadonlyServiceProvider:: |
public | function | ||
ConfigReadonlyServiceProvider:: |
public | function |