| 1 | <?php |
||
| 19 | class SymfonyContainerCommandHandlerLocator implements CommandHandlerLocator, ContainerAwareInterface |
||
| 20 | { |
||
| 21 | use ContainerAwareTrait; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var string[] |
||
| 25 | */ |
||
| 26 | private $command_handler_ids = []; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param Command $command |
||
| 30 | * |
||
| 31 | * @return CommandHandler|null |
||
| 32 | */ |
||
| 33 | 4 | public function getCommandHandler(Command $command) |
|
| 37 | |||
| 38 | /** |
||
| 39 | * @param string $command_name |
||
| 40 | * @param string $service |
||
| 41 | */ |
||
| 42 | 4 | public function registerService($command_name, $service) |
|
| 46 | |||
| 47 | /** |
||
| 48 | * @param $command_name |
||
| 49 | * |
||
| 50 | * @return CommandHandler |
||
| 51 | */ |
||
| 52 | 4 | private function lazyLoad($command_name) |
|
| 64 | } |
||
| 65 |