1 | <?php |
||
11 | class ExtractCommandFromRequestListener |
||
12 | { |
||
13 | public const API_RESPONDER_CONTROLLER = 'eps.req2cmd.action.api_responder'; |
||
14 | public const CMD_CLASS_PARAM = '_command_class'; |
||
15 | public const CMD_PARAM = '_command'; |
||
16 | public const CMD_PROPS_PARAM = '_command_properties'; |
||
17 | private const CONTROLLER_PARAM = '_controller'; |
||
18 | |||
19 | /** |
||
20 | * @var CommandExtractorInterface |
||
21 | */ |
||
22 | private $extractor; |
||
23 | |||
24 | /** |
||
25 | * @var ParamCollectorInterface |
||
26 | */ |
||
27 | private $paramCollector; |
||
28 | |||
29 | public function __construct(CommandExtractorInterface $extractor, ParamCollectorInterface $paramCollector) |
||
34 | |||
35 | public function onKernelRequest(GetResponseEvent $event): void |
||
53 | |||
54 | private function extractAdditionalParams(Request $request): array |
||
64 | } |
||
65 |