| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 37 | public function onKernelException(GetResponseForExceptionEvent $event) |
||
| 38 | { |
||
| 39 | $exception = $event->getException(); |
||
| 40 | |||
| 41 | if (!$exception instanceof InconsistentStateException) { |
||
| 42 | return; |
||
| 43 | } |
||
| 44 | |||
| 45 | $this->logger->critical( |
||
| 46 | sprintf('An inconsistent state has been reached: "%s"', $exception->getMessage()), |
||
| 47 | ['exception' => $exception] |
||
| 48 | ); |
||
| 49 | } |
||
| 50 | } |
||
| 51 |