Total Complexity | 4 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class DecodeControllerParametersSubscriber implements EventSubscriberInterface |
||
11 | { |
||
12 | protected $decodeControllerParameters; |
||
13 | |||
14 | 1 | public function __construct(DecodeControllerParameters $decodeControllerParameters) |
|
17 | 1 | } |
|
18 | |||
19 | 1 | public function onKernelController(ControllerEvent $event): void |
|
20 | { |
||
21 | 1 | $this->getDecodeControllerParameters()->decodeControllerParameters($event); |
|
22 | 1 | } |
|
23 | |||
24 | 2 | public static function getSubscribedEvents(): array |
|
25 | { |
||
26 | return [ |
||
27 | 2 | KernelEvents::CONTROLLER => 'onKernelController', |
|
28 | ]; |
||
29 | } |
||
30 | |||
31 | 1 | public function getDecodeControllerParameters(): DecodeControllerParameters |
|
34 | } |
||
35 | } |
||
36 |