diff --git a/App/FrontController.php b/App/FrontController.php index 4d05bb6..07ba0eb 100644 --- a/App/FrontController.php +++ b/App/FrontController.php @@ -29,7 +29,7 @@ class FrontController private function __construct() { -// ErrorHandler::init(); +// \Majestic\Exception\ErrorHandler::init(); $this->router = new Router\Router(); } diff --git a/Exception/ErrorHandler.php b/Exception/ErrorHandler.php index 9c9f0dc..6ca3dec 100644 --- a/Exception/ErrorHandler.php +++ b/Exception/ErrorHandler.php @@ -12,7 +12,7 @@ class ErrorHandler static public function init() { - set_error_handler(array('ErrorHandler', 'error_handler')); + set_error_handler(array('Majestic\Exception\ErrorHandler', 'error_handler')); } static public function error_handler($errno, $errstr, $errfile, $errline)