1 | <?php |
||
9 | class AdjacentLocator implements HandlerLocator |
||
10 | { |
||
11 | /** |
||
12 | * The container instance. |
||
13 | * |
||
14 | * @var \Illuminate\Contracts\Container\Container |
||
15 | */ |
||
16 | protected $container; |
||
17 | |||
18 | /** |
||
19 | * Create a new adjacent locator instance. |
||
20 | * |
||
21 | * @param \Illuminate\Contracts\Container\Container $container |
||
22 | */ |
||
23 | public function __construct(Container $container) |
||
27 | |||
28 | /** |
||
29 | * Returns the handler located in the same directory for a specified command. |
||
30 | * |
||
31 | * @param string $command |
||
32 | * @return object |
||
33 | * |
||
34 | * @throws \League\Tactician\Exception\MissingHandlerException |
||
35 | */ |
||
36 | public function getHandlerForCommand($command) |
||
46 | } |
||
47 |