public function Kernel::shutdown

@api

Overrides KernelInterface::shutdown

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Kernel.php, line 163

Class

Kernel
The Kernel is the heart of the Symfony system.

Namespace

Symfony\Component\HttpKernel

Code

public function shutdown() {
  if (false === $this->booted) {
    return;
  }
  $this->booted = false;
  foreach ($this
    ->getBundles() as $bundle) {
    $bundle
      ->shutdown();
    $bundle
      ->setContainer(null);
  }
  $this->container = null;
}