Bundle class for update.php service overrides.
This bundle is manually added by update.php via $conf['container_bundles'] and required to prevent various services from trying to retrieve data from storages that do not exist yet.
Expanded class hierarchy of UpdateBundle
class UpdateBundle extends Bundle {
/**
* Implements \Symfony\Component\HttpKernel\Bundle\BundleInterface::build().
*/
public function build(SymfonyContainerBuilder $container) {
// Disable the Lock service.
$container
->register('lock', 'Drupal\\Core\\Lock\\NullLockBackend');
// Prevent config from accessing {cache_config}.
// @see $conf['cache_classes'], update_prepare_d8_bootstrap()
$container
->register('config.storage', 'Drupal\\Core\\Config\\FileStorage')
->addArgument(config_get_config_directory(CONFIG_ACTIVE_DIRECTORY));
$container
->register('module_handler', 'Drupal\\Core\\Extension\\UpdateModuleHandler')
->addArgument('%container.modules%');
$container
->register("cache_factory", 'Drupal\\Core\\Cache\\MemoryBackendFactory');
$container
->register('router.builder', 'Drupal\\Core\\Routing\\RouteBuilderStatic');
}
}
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Bundle:: |
protected | property | ||
Bundle:: |
protected | property | ||
Bundle:: |
protected | property | ||
Bundle:: |
public | function |
Boots the Bundle. Overrides BundleInterface:: |
|
Bundle:: |
public | function |
Returns the bundle's container extension. Overrides BundleInterface:: |
|
Bundle:: |
final public | function |
Returns the bundle name (the class short name). Overrides BundleInterface:: |
|
Bundle:: |
public | function |
Gets the Bundle namespace. Overrides BundleInterface:: |
|
Bundle:: |
public | function |
Returns the bundle parent name. Overrides BundleInterface:: |
|
Bundle:: |
public | function |
Gets the Bundle directory path. Overrides BundleInterface:: |
|
Bundle:: |
public | function | Finds and registers Commands. | |
Bundle:: |
public | function |
Shutdowns the Bundle. Overrides BundleInterface:: |
|
ContainerAware:: |
protected | property | @api | |
ContainerAware:: |
public | function |
Sets the Container associated with this Controller. Overrides ContainerAwareInterface:: |
|
UpdateBundle:: |
public | function |
Implements \Symfony\Component\HttpKernel\Bundle\BundleInterface::build(). Overrides Bundle:: |