Kraken\Container\ServiceRegister::boot PHP Method

boot() public method

public boot ( )
    public function boot()
    {
        try {
            $this->sortProviders();
            $this->registerProviders();
            $this->registerAliases();
            $this->bootProviders();
            $this->booted = true;
            return;
        } catch (Error $ex) {
        } catch (Exception $ex) {
        }
        throw new ExecutionException("ServiceRegister could not be booted.", $ex);
    }

Usage Example

Example #1
0
 /**
  * Boot providers.
  *
  * @throws ExecutionException
  */
 protected function bootProviders()
 {
     $this->serviceRegister->boot();
 }