public function Container::compile

Compiles the container.

This method does two things:

  • Parameter values are resolved;
  • The parameter bag is frozen.

@api

1 call to Container::compile()
ContainerBuilder::compile in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/ContainerBuilder.php
Compiles the container.
1 method overrides Container::compile()
ContainerBuilder::compile in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/ContainerBuilder.php
Compiles the container.

File

drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Container.php, line 109

Class

Container
Container is a dependency injection container.

Namespace

Symfony\Component\DependencyInjection

Code

public function compile() {
  $this->parameterBag
    ->resolve();
  $this->parameterBag = new FrozenParameterBag($this->parameterBag
    ->all());
}