Advertisement
Guest User

Untitled

a guest
Jun 27th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. public function onKernelException(ExceptionEvent $event)
  2. {
  3. $exception = $event->getException();
  4. $message = $exception->getMessage();
  5. $redirectUrl = null;
  6. switch (true) {
  7. case ($exception->getSeverity() == E_NOTICE || $exception->getSeverity == E_STRICT):
  8. // Here is my issue... I don't want to reload/redirect... I want to continue normal execution
  9. break;
  10. case $exception instanceof AccessDeniedException:
  11. $this->stopBugsnagPipe();
  12. break;
  13. // Etc. etc. other cases.
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement