Skip to content

Commit

Permalink
Phalcon 4 - for #4012
Browse files Browse the repository at this point in the history
o  Phalcon\Dispatcher::EXCEPTION_* moved to  Phalcon\Dispatcher\Exception::EXCEPTION_*
  • Loading branch information
AdSchellevis committed Apr 14, 2021
1 parent d8aa226 commit 7081a85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/opnsense/mvc/app/config/services_api.php
Expand Up @@ -97,7 +97,7 @@
// exception handling
$di->get('eventsManager')->attach("dispatch:beforeException", function ($event, $dispatcher, $exception) {
switch ($exception->getCode()) {
case Phalcon\Dispatcher::EXCEPTION_HANDLER_NOT_FOUND:
case Phalcon\Dispatcher\Exception::EXCEPTION_HANDLER_NOT_FOUND:
// send to error action on default index controller
$dispatcher->forward(array(
'controller' => 'index',
Expand All @@ -109,7 +109,7 @@
)
));
return false;
case Phalcon\Dispatcher::EXCEPTION_ACTION_NOT_FOUND:
case Phalcon\Dispatcher\Exception::EXCEPTION_ACTION_NOT_FOUND:
// send to error action on default index controller
$dispatcher->forward(array(
'controller' => 'index',
Expand Down

0 comments on commit 7081a85

Please sign in to comment.