You are here

public function Kernel::shutdown in Zircon Profile 8

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

Shutdowns the kernel.

This method is mainly useful when doing functional testing.

Overrides KernelInterface::shutdown

File

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

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