예제 #1
0
파일: Whoops.php 프로젝트: GruppoMeta/Movio
 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();
 }
예제 #2
0
 public static function unregister()
 {
     self::$isRegistred = false;
     restore_exception_handler();
     restore_error_handler();
 }