Autarky\Application::boot PHP Method

boot() public method

Boot the application.
public boot ( ) : void
return void
    public function boot()
    {
        if ($this->booted) {
            return;
        }
        $this->booting = true;
        $this->registerProviders();
        foreach ($this->configurators as $configurator) {
            $this->invokeConfigurator($configurator);
        }
        $this->resolveStack();
        $this->booted = true;
    }

Usage Example

Beispiel #1
0
 /**
  * {@inheritdoc}
  */
 public function setUp()
 {
     $this->app = $this->createApplication();
     $this->app->setEnvironment('testing');
     $this->app->boot();
     $this->app->getErrorHandler()->setRethrow(true);
 }