1 | <?php |
||
11 | abstract class ToolbeltServiceProvider extends AbstractServiceProvider |
||
12 | { |
||
13 | protected $provides = [ |
||
14 | 'toolbelt', |
||
15 | ]; |
||
16 | |||
17 | /** |
||
18 | * Console commands. |
||
19 | * |
||
20 | * @return Command[] |
||
21 | */ |
||
22 | abstract public function commands(): array; |
||
23 | |||
24 | /** |
||
25 | * Use the register method to register items with the container via the |
||
26 | * protected $this->container property or the `getContainer` method |
||
27 | * from the ContainerAwareTrait. |
||
28 | * |
||
29 | * @return void |
||
30 | * |
||
31 | * @throws \Psr\Container\ContainerExceptionInterface |
||
32 | */ |
||
33 | public function register(): void |
||
56 | } |
||
57 |