You are here

public function Kernel::boot in Zircon Profile 8

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

Boots the current kernel.

Overrides KernelInterface::boot

1 call to Kernel::boot()
Kernel::handle in vendor/symfony/http-kernel/Kernel.php
Handles a Request to convert it to a Response.

File

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

Class

Kernel
The Kernel is the heart of the Symfony system.

Namespace

Symfony\Component\HttpKernel

Code

public function boot() {
  if (true === $this->booted) {
    return;
  }
  if ($this->loadClassCache) {
    $this
      ->doLoadClassCache($this->loadClassCache[0], $this->loadClassCache[1]);
  }

  // init bundles
  $this
    ->initializeBundles();

  // init container
  $this
    ->initializeContainer();
  foreach ($this
    ->getBundles() as $bundle) {
    $bundle
      ->setContainer($this->container);
    $bundle
      ->boot();
  }
  $this->booted = true;
}