function Container::compile
Compiles the container.
This method does two things:
- Parameter values are resolved;
- The parameter bag is frozen.
2 calls to Container::compile()
- ContainerBuilder::compile in vendor/
symfony/ dependency-injection/ ContainerBuilder.php - Compiles the container.
- ContainerBuilder::compile in vendor/
symfony/ dependency-injection/ ContainerBuilder.php - Compiles the container.
1 method overrides Container::compile()
- ContainerBuilder::compile in vendor/
symfony/ dependency-injection/ ContainerBuilder.php - Compiles the container.
File
-
vendor/
symfony/ dependency-injection/ Container.php, line 83
Class
- Container
- Container is a dependency injection container.
Namespace
Symfony\Component\DependencyInjectionCode
public function compile() : void {
$this->parameterBag
->resolve();
$this->parameterBag = new FrozenParameterBag($this->parameterBag
->all(), $this->parameterBag instanceof ParameterBag ? $this->parameterBag
->allDeprecated() : [], $this->parameterBag instanceof ParameterBag ? $this->parameterBag
->allNonEmpty() : []);
$this->compiled = true;
}