Completed
Push — dev-master ( 710732...009af4 )
by Karol
03:53 queued 10s
created

getSubscribedEvents()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 4
rs 10
1
<?php
2
3
namespace Pgs\HashIdBundle\EventSubscriber;
4
5
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
6
use Symfony\Component\HttpKernel\KernelEvents;
7
8
abstract class AbstractDecodeControllerParametersSubscriber implements
9
    EventSubscriberInterface,
10
    DecodeControllerParametersSubscriberInterface
11
{
12
    protected $decodeControllerParameters;
13
14
    public function __construct(DecodeControllerParametersSubscriberInterface $decodeControllerParameters)
15
    {
16
        $this->decodeControllerParameters = $decodeControllerParameters;
17
    }
18
19
    public static function getSubscribedEvents(): array
20
    {
21
        return [
22
            KernelEvents::CONTROLLER => 'onKernelController',
23
        ];
24
    }
25
}
26