Bolt\Tests\BoltUnitTest::getApp PHP Method

getApp() protected method

protected getApp ( $boot = true )
    protected function getApp($boot = true)
    {
        if (!$this->app) {
            $this->app = $this->makeApp();
            $this->app->initialize();
            $verifier = new Config\Validation\Validator($this->app['controller.exception'], $this->app['config'], $this->app['resources']);
            $verifier->checks();
            if ($boot) {
                $this->app->boot();
            }
        }
        return $this->app;
    }

Usage Example

Beispiel #1
0
 protected function getApp()
 {
     $bolt = parent::getApp();
     $bolt['extend.action.options']['basedir'] = $bolt['resources']->getPath('extensions');
     $bolt['extend.action.options']['composerjson'] = $bolt['resources']->getPath('extensions') . '/composer.json';
     return $bolt;
 }
All Usage Examples Of Bolt\Tests\BoltUnitTest::getApp