Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
27 | public function handleRequest(AdminEvent $event, Request $request) |
||
28 | { |
||
29 | if (!$event instanceof DisplayEvent) { |
||
30 | throw new RequestHandlerException(sprintf("%s require DisplayEvent", get_class($this))); |
||
31 | } |
||
32 | |||
33 | $this->eventDispatcher->dispatch(DisplayEvents::DISPLAY_PRE_RENDER, $event); |
||
34 | if ($event->hasResponse()) { |
||
35 | return $event->getResponse(); |
||
36 | } |
||
37 | } |
||
38 | } |
||
39 |