DrupalKernel::$defaultBootstrapContainerDefinition

Same name in other branches
  1. 9 core/lib/Drupal/Core/DrupalKernel.php \Drupal\Core\DrupalKernel::defaultBootstrapContainerDefinition
  2. 10 core/lib/Drupal/Core/DrupalKernel.php \Drupal\Core\DrupalKernel::defaultBootstrapContainerDefinition
  3. 11.x core/lib/Drupal/Core/DrupalKernel.php \Drupal\Core\DrupalKernel::defaultBootstrapContainerDefinition

Holds the default bootstrap container definition.

Type: array

File

core/lib/Drupal/Core/DrupalKernel.php, line 76

Class

DrupalKernel
The DrupalKernel class is the core of Drupal itself.

Namespace

Drupal\Core

Code

protected $defaultBootstrapContainerDefinition = [
    'parameters' => [],
    'services' => [
        'database' => [
            'class' => 'Drupal\\Core\\Database\\Connection',
            'factory' => 'Drupal\\Core\\Database\\Database::getConnection',
            'arguments' => [
                'default',
            ],
        ],
        'cache.container' => [
            'class' => 'Drupal\\Core\\Cache\\DatabaseBackend',
            'arguments' => [
                '@database',
                '@cache_tags_provider.container',
                'container',
                DatabaseBackend::MAXIMUM_NONE,
            ],
        ],
        'cache_tags_provider.container' => [
            'class' => 'Drupal\\Core\\Cache\\DatabaseCacheTagsChecksum',
            'arguments' => [
                '@database',
            ],
        ],
    ],
];

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.