Boots the current kernel.
@api
Overrides KernelInterface::boot
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;
}