| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | public function handleMissingView(GetResponseEvent $event, $viewName, array $viewParams = null) |
||
| 11 | { |
||
| 12 | $kernel = $event->getKernel(); |
||
| 13 | $request = $event->getRequest(); |
||
| 14 | |||
| 15 | $subRequest = $request->duplicate(array(), null, array( |
||
| 16 | '_controller' => 'KnpRadBundle:Assistant:missingView', |
||
| 17 | 'viewName' => $viewName, |
||
| 18 | 'viewParams' => $viewParams, |
||
| 19 | )); |
||
| 20 | |||
| 21 | $response = $kernel->handle($subRequest, HttpKernelInterface::SUB_REQUEST); |
||
| 22 | $event->setResponse($response); |
||
| 23 | } |
||
| 24 | } |
||
| 25 |