Commit 55f0b6b1 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

ExceptionStrategy ne doit pas intervenir si la requête est de type console (CLI).

parent 807390d8
Loading
Loading
Loading
Loading
+5 −0
Changes for src/UnicaenApp/Mvc/View/Http/ExceptionStrategy.php: 5 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -59,6 +59,11 @@ class ExceptionStrategy extends \Zend\Mvc\View\Http\ExceptionStrategy
            return;
        }

        // Do nothing if the request is console type
        if ($e->getRequest() instanceof \Zend\Console\Request) {
            return;
        }

        switch ($error) {
            case Application::ERROR_CONTROLLER_NOT_FOUND:
            case Application::ERROR_CONTROLLER_INVALID: