Browse Source

Merge branch 'namespace' of dimti.ru:majestic into namespace

namespace
Alexander Demidov 11 years ago
parent
commit
5b7a10e099
  1. 2
      App/FrontController.php
  2. 2
      Exception/ErrorHandler.php

2
App/FrontController.php

@ -29,7 +29,7 @@ class FrontController
private function __construct() private function __construct()
{ {
// ErrorHandler::init();
// \Majestic\Exception\ErrorHandler::init();
$this->router = new Router\Router(); $this->router = new Router\Router();
} }

2
Exception/ErrorHandler.php

@ -12,7 +12,7 @@ class ErrorHandler
static public function init() 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) static public function error_handler($errno, $errstr, $errfile, $errline)

Loading…
Cancel
Save