function Kernel::boot
Overrides KernelInterface::boot
2 calls to Kernel::boot()
- Kernel::handle in vendor/
symfony/ http-kernel/ Kernel.php - Handles a Request to convert it to a Response.
- Kernel::reboot in vendor/
symfony/ http-kernel/ Kernel.php - Reboots a kernel.
File
-
vendor/
symfony/ http-kernel/ Kernel.php, line 103
Class
- Kernel
- The Kernel is the heart of the Symfony system.
Namespace
Symfony\Component\HttpKernelCode
public function boot() : void {
if (true === $this->booted) {
if (!$this->requestStackSize && $this->resetServices) {
if ($this->container
->has('services_resetter')) {
$this->container
->get('services_resetter')
->reset();
}
$this->resetServices = false;
if ($this->debug) {
$this->startTime = microtime(true);
}
}
return;
}
if (null === $this->container) {
$this->preBoot();
}
foreach ($this->getBundles() as $bundle) {
$bundle->setContainer($this->container);
$bundle->boot();
}
$this->booted = true;
}