You are here

public function Container::compile in Service Container 7.2

Same name and namespace in other branches
  1. 7 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Container.php \Symfony\Component\DependencyInjection\Container::compile()

Compiles the container.

This method does two things:

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

@api

File

modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Container.php, line 103

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());
}