| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | public function onKernelController(FilterControllerEvent $event) |
||
| 30 | { |
||
| 31 | $controller = $event->getController(); |
||
| 32 | if (!is_array($controller)) { |
||
| 33 | return; |
||
| 34 | } |
||
| 35 | |||
| 36 | if ($controller[0] instanceof PollSetterController) { |
||
| 37 | $controller[0]->setPollFromRequest($event->getRequest()); |
||
| 38 | } |
||
| 39 | } |
||
| 40 | } |
||
| 41 |