1 | <?php |
||
11 | class ContainerBasedHandlerLocator implements HandlerLocator |
||
12 | { |
||
13 | /** |
||
14 | * @var ContainerInterface |
||
15 | */ |
||
16 | private $container; |
||
17 | |||
18 | /** |
||
19 | * @var array |
||
20 | */ |
||
21 | private $commandToServiceId = []; |
||
22 | |||
23 | /** |
||
24 | * @param ContainerInterface $container |
||
25 | * @param $commandToServiceIdMapping |
||
26 | */ |
||
27 | 18 | public function __construct(ContainerInterface $container, array $commandToServiceIdMapping) |
|
32 | |||
33 | /** |
||
34 | * Retrieves the handler for a specified command |
||
35 | * |
||
36 | * @param string $commandName |
||
37 | * @return mixed |
||
38 | */ |
||
39 | 18 | public function getHandlerForCommand($commandName) |
|
47 | } |
||
48 |