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

__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 3
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