|
@ -35,12 +35,17 @@ class FrontController |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* Refuse cloning |
|
|
* Refuse cloning |
|
|
|
|
|
* @codeCoverageIgnoreStart |
|
|
*/ |
|
|
*/ |
|
|
private function __clone() |
|
|
private function __clone() |
|
|
{ |
|
|
{ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
|
|
|
* @codeCoverageIgnoreEnd |
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
* @return FrontController |
|
|
* @return FrontController |
|
|
*/ |
|
|
*/ |
|
|
static public function getInstance() |
|
|
static public function getInstance() |
|
@ -128,7 +133,8 @@ class FrontController |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
return $html; |
|
|
return $html; |
|
|
} catch (Exception $e) { |
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
catch (Exception $e) { |
|
|
if (Config::get('DEBUG')) { |
|
|
if (Config::get('DEBUG')) { |
|
|
if (!headers_sent()) { |
|
|
if (!headers_sent()) { |
|
|
if ($e instanceof ErrorHTTPException) { |
|
|
if ($e instanceof ErrorHTTPException) { |
|
|