Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
30 | public function handleRequest(AdminEvent $event, Request $request): ?Response |
||
31 | { |
||
32 | if (!$event instanceof DisplayEvent) { |
||
33 | throw new RequestHandlerException(sprintf('%s requires DisplayEvent', get_class($this))); |
||
34 | } |
||
35 | |||
36 | $this->eventDispatcher->dispatch(DisplayEvents::DISPLAY_PRE_RENDER, $event); |
||
37 | if ($event->hasResponse()) { |
||
38 | return $event->getResponse(); |
||
39 | } |
||
40 | |||
41 | return null; |
||
42 | } |
||
44 |