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;
}