$container_definition =
$dumper->
getArray();
} } // The container was rebuilt successfully.
$this->containerNeedsRebuild = FALSE;
// Only create a new class if we have a container definition.
if (isset($container_definition)) { // Drupal provides two dynamic parameters to access specific paths that
// are determined from the request.
$container_definition['parameters'
]['app.root'
] =
$this->
getAppRoot();
$container_definition['parameters'
]['site.path'
] =
$this->
getSitePath();
$class = Settings::
get('container_base_class', '\Drupal\Core\DependencyInjection\Container'
);
$container =
new $class($container_definition);
} $this->
attachSynthetic($container);
$this->container =
$container;
if ($session_started) { $this->container->
get('session'
)->
start();
}