Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function onKernelException(ExceptionEvent $event)
- {
- $exception = $event->getException();
- $message = $exception->getMessage();
- $redirectUrl = null;
- switch (true) {
- case ($exception->getSeverity() == E_NOTICE || $exception->getSeverity == E_STRICT):
- // Here is my issue... I don't want to reload/redirect... I want to continue normal execution
- break;
- case $exception instanceof AccessDeniedException:
- $this->stopBugsnagPipe();
- break;
- // Etc. etc. other cases.
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement