You are here

protected function Kernel::getContainerBuilder in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-kernel/Kernel.php \Symfony\Component\HttpKernel\Kernel::getContainerBuilder()

Gets a new ContainerBuilder instance used to build the service container.

Return value

ContainerBuilder

1 call to Kernel::getContainerBuilder()
Kernel::buildContainer in vendor/symfony/http-kernel/Kernel.php
Builds the service container.

File

vendor/symfony/http-kernel/Kernel.php, line 637

Class

Kernel
The Kernel is the heart of the Symfony system.

Namespace

Symfony\Component\HttpKernel

Code

protected function getContainerBuilder() {
  $container = new ContainerBuilder(new ParameterBag($this
    ->getKernelParameters()));
  if (class_exists('ProxyManager\\Configuration') && class_exists('Symfony\\Bridge\\ProxyManager\\LazyProxy\\Instantiator\\RuntimeInstantiator')) {
    $container
      ->setProxyInstantiator(new RuntimeInstantiator());
  }
  return $container;
}