Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
33 | public function onKernelException(GetResponseForExceptionEvent $event) |
||
34 | { |
||
35 | $exception = $event->getException(); |
||
36 | |||
37 | if (!($exception instanceof SkipControllerException)) { |
||
38 | return; |
||
39 | } |
||
40 | |||
41 | $event->allowCustomResponseCode(); |
||
42 | $event->setResponse($exception->getResponse()); |
||
43 | } |
||
45 |