Shutdowns the kernel.
This method is mainly useful when doing functional testing.
@api
Overrides KernelInterface::shutdown
public function shutdown() {
if (false === $this->booted) {
return;
}
$this->booted = false;
foreach ($this
->getBundles() as $bundle) {
$bundle
->shutdown();
$bundle
->setContainer(null);
}
$this->container = null;
}