| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public function onKernelException(GetResponseForExceptionEvent $event) |
||
| 25 | { |
||
| 26 | $exception = $event->getException(); |
||
| 27 | |||
| 28 | if (!($exception instanceof SkipControllerException)) { |
||
| 29 | return; |
||
| 30 | } |
||
| 31 | |||
| 32 | $event->allowCustomResponseCode(); |
||
| 33 | $event->setResponse($exception->getResponse()); |
||
| 34 | } |
||
| 43 |