1 | <?php |
||
11 | class ComponentProvider extends AbstractComponentProvider |
||
12 | { |
||
13 | |||
14 | protected $commands = [ |
||
15 | 'EventGenerate' => 'command.event.generate', |
||
16 | 'EventMake' => 'command.event.make', |
||
17 | 'ListenerMake' => 'command.listener.make', |
||
18 | ]; |
||
19 | |||
20 | /** |
||
21 | * {@inheritdoc} |
||
22 | */ |
||
23 | public function isAvailable(): bool |
||
27 | |||
28 | /** |
||
29 | * {@inheritdoc} |
||
30 | */ |
||
31 | public function register(): void |
||
43 | |||
44 | /** |
||
45 | * Register the given commands. |
||
46 | * |
||
47 | * @param array $commands |
||
48 | * @return void |
||
49 | */ |
||
50 | protected function registerCommands(array $commands) |
||
58 | |||
59 | /** |
||
60 | * Register the command. |
||
61 | * |
||
62 | * @return void |
||
63 | */ |
||
64 | protected function registerEventGenerateCommand() |
||
70 | /** |
||
71 | * Register the command. |
||
72 | * |
||
73 | * @return void |
||
74 | */ |
||
75 | protected function registerEventMakeCommand() |
||
81 | |||
82 | /** |
||
83 | * Register the command. |
||
84 | * |
||
85 | * @return void |
||
86 | */ |
||
87 | protected function registerListenerMakeCommand() |
||
93 | } |
||
94 |