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 | 6 | public function __construct(ContainerInterface $container, $commandToServiceIdMapping) |
|
36 | |||
37 | /** |
||
38 | * Retrieves the handler for a specified command |
||
39 | * |
||
40 | * @param string $commandName |
||
41 | * @return mixed |
||
42 | */ |
||
43 | 6 | public function getHandlerForCommand($commandName) |
|
51 | } |
||
52 |