Skip to content
Snippets Groups Projects
Commit 67af726f authored by Demian Katz's avatar Demian Katz
Browse files

Disable custom 404s in console mode.

parent 629c3b83
No related merge requests found
...@@ -318,6 +318,11 @@ class Bootstrap ...@@ -318,6 +318,11 @@ class Bootstrap
*/ */
protected function initExceptionBased404s() protected function initExceptionBased404s()
{ {
// 404s not needed in console mode:
if (Console::isConsole()) {
return;
}
$callback = function ($e) { $callback = function ($e) {
$exception = $e->getParam('exception'); $exception = $e->getParam('exception');
if (is_object($exception)) { if (is_object($exception)) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment