| 1 | <?php |
||
| 7 | class LaravelLazyLocator extends LaravelLocator |
||
| 8 | { |
||
| 9 | |||
| 10 | /** |
||
| 11 | * Bind a handler instance to receive all commands with a certain class |
||
| 12 | * |
||
| 13 | * @param string $handler Handler to receive class name |
||
| 14 | * @param string $commandClassName Command class e.g. "My\TaskAddedCommand" |
||
| 15 | */ |
||
| 16 | 11 | public function addHandler($handler, $commandClassName) |
|
| 22 | |||
| 23 | /** |
||
| 24 | * Retrieves the handler for a specified command |
||
| 25 | * |
||
| 26 | * @param string $commandName |
||
| 27 | * |
||
| 28 | * @return object |
||
| 29 | * |
||
| 30 | * @throws MissingHandlerException |
||
| 31 | */ |
||
| 32 | 12 | public function getHandlerForCommand($commandName) |
|
| 43 | } |
||
| 44 |