Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Container.php

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\DependencyInjection

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal