Author: Gawain Lynch (gawain.lynch@gmail.com)
Inheritance: extends Bolt\Configuration\LowlevelChecks, implements Bolt\Configuration\Validation\ValidatorInterface
Example #1
0
 protected function makeApp()
 {
     $app = parent::makeApp();
     $app->initialize();
     $verifier = new Validator($app['controller.exception'], $app['config'], $app['resources']);
     $verifier->checks();
     $app->boot();
     return $app;
 }
Example #2
0
 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;
 }
Example #3
0
 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;
 }