1 | <?php |
||
26 | class DebugListener |
||
27 | { |
||
28 | /** @var SecurityContextInterface */ |
||
29 | private $securityContext; |
||
30 | |||
31 | /** @var Translator */ |
||
32 | private $translator; |
||
33 | |||
34 | /** @var ActivationModeFactory */ |
||
35 | private $activationModeFactory; |
||
36 | |||
37 | /** @var string */ |
||
38 | private $activationMode; |
||
39 | |||
40 | /** @var string */ |
||
41 | private $requestParam; |
||
42 | |||
43 | /** @var array */ |
||
44 | private $authorizedRoles; |
||
45 | |||
46 | /** |
||
47 | * Constructor |
||
48 | * |
||
49 | * @param SecurityContextInterface $securityContext |
||
50 | * @param Translator $translator |
||
51 | * @param ActivationModeFactory $activationModeFactory |
||
52 | * @param string $requestParam |
||
53 | * @param string $activationMode |
||
54 | * @param array $authorizedRoles |
||
55 | */ |
||
56 | public function __construct( |
||
71 | |||
72 | /** |
||
73 | * @param GetResponseEvent $event |
||
74 | */ |
||
75 | public function onKernelRequest(GetResponseEvent $event) |
||
89 | |||
90 | /** |
||
91 | * Checks if the access is possible or not |
||
92 | * |
||
93 | * @return bool |
||
94 | */ |
||
95 | private function isGranted() |
||
109 | } |
||
110 |