Beispiel #1
0
 public function __construct()
 {
     // Load in whoops on exception?
     $this->whoops = Configuration::get('app.env', 'production') === 'development' && Configuration::get('app.visualException', false);
     if ($this->whoops) {
         $this->whoops = new Run();
         $pretty = new PrettyPageHandler();
         $pretty->setPageTitle("Arvici - Exception is thrown!");
         if (Configuration::get('app.ide', 'none') === 'idea') {
             $pretty->setEditor(function ($file, $line) {
                 return array('url' => "http://localhost:63342/api/file/?file={$file}&line={$line}", 'ajax' => true);
             });
         }
         $this->whoops->pushHandler($pretty);
     }
 }