Dumplie\SharedKernel\Application\Kernel::boot PHP Method

boot() public method

public boot ( Dumplie\SharedKernel\Application\ServiceLocator $locator )
$locator Dumplie\SharedKernel\Application\ServiceLocator
    public function boot(ServiceLocator $locator)
    {
        foreach ($this->extensions as $extension) {
            $extension->boot($locator);
        }
    }

Usage Example

Beispiel #1
0
 public final 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->dumplieKernel->boot($this->container);
     $this->booted = true;
 }