Slide 14
Slide 14 text
/**
* Boots the kernel.
*
* @api
*/
public function boot()
{
...
// init container
$this->initializeContainer();
foreach ($this->getBundles() as $bundle) {
$bundle->setContainer($this->container);
$bundle->boot();
}
...
}
/**
* Initializes the service container.
*
* The cached version of the service container is used
when fresh, otherwise the
* container is built.
*/
protected function initializeContainer()
{
...
}
Реализация в Symfony
• HttpKernel
• Bundles
пятница, 9 ноября 12 г.