Esempio n. 1
0
 public function __construct()
 {
     spl_autoload_register(array($this, 'loadClass'));
     GlizyErrorHandler::unregister();
     $whoops = new \Whoops\Run();
     $handler = new \Whoops\Handler\PrettyPageHandler();
     $whoops->pushHandler($handler);
     $whoops->register();
 }
Esempio n. 2
0
 public static function unregister()
 {
     self::$isRegistred = false;
     restore_exception_handler();
     restore_error_handler();
 }