-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
beforeException dispatcher forward not works on exception from plugin #12542
Comments
HI, I also met this problem today in $dispatcher->forward(array(
'controller' => 'error',
'action' => 'showUnknown',
'params' => [$exception],
));
$dispatcher->dispatch();
return false; Or you can change codes in https://github.com/phalcon/cphalcon/blob/master/phalcon/dispatcher.zep#L656 to if this->{"_handleException"}(e) === false {
continue;
} elseif this->_finished === false {
continue;
} else {
throw e;
} Maybe that is the true purpose in Sent from my OnePlus ONEPLUS A5000 using FastHub |
any progress? @sergeyklay Sent from my OnePlus ONEPLUS A5000 using FastHub |
Related to #12931. We have a PR that needs to rebase that fixes all the initialize/beforeException events. |
Fixed in the |
Expected and Actual Behavior
https://github.com/tugrul/invo/commit/2ad34a0ef102b9509ae86000cdcc6c7a4374325d
beforeException able to handle that exception but $dispatcher->forward() not works
https://github.com/tugrul/invo/blob/master/app/plugins/NotFoundPlugin.php#L41
Details
The text was updated successfully, but these errors were encountered: