public function Kernel::shutdown

Shutdowns the kernel.

This method is mainly useful when doing functional testing.

@api

Overrides KernelInterface::shutdown

File

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

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