protected function makeApp() { $app = parent::makeApp(); $app->initialize(); $verifier = new Validator($app['controller.exception'], $app['config'], $app['resources']); $verifier->checks(); $app->boot(); return $app; }
protected function makeApp() { $app = parent::makeApp(); $app->initialize(); $app['twig.loader'] = new \Twig_Loader_Chain([new \Twig_Loader_String()]); $verifier = new Validator($app['controller.exception'], $app['config'], $app['resources']); $verifier->checks(); $app->boot(); return $app; }
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; }