1 | <?php |
||
16 | class ConsoleConfig extends InjectableConfig |
||
17 | { |
||
18 | /** |
||
19 | * Configuration section. |
||
20 | */ |
||
21 | const CONFIG = 'console'; |
||
22 | |||
23 | /** |
||
24 | * @var array |
||
25 | */ |
||
26 | protected $config = [ |
||
27 | 'locateCommands' => true, |
||
28 | 'commands' => [], |
||
29 | 'updateSequence' => [], |
||
30 | 'configureSequence' => [] |
||
31 | ]; |
||
32 | |||
33 | /** |
||
34 | * @return string |
||
35 | */ |
||
36 | public function defaultCommand(): string |
||
40 | |||
41 | /** |
||
42 | * Indication that ConsoleDispatcher must locate commands. |
||
43 | * |
||
44 | * @return bool |
||
45 | */ |
||
46 | public function locateCommands(): bool |
||
55 | |||
56 | /** |
||
57 | * User defined set of commands (to be used when auto-location is off). |
||
58 | * |
||
59 | * @return array |
||
60 | */ |
||
61 | public function userCommands(): array |
||
70 | |||
71 | /** |
||
72 | * Set of commands to be executed in "spiral:configure" command. |
||
73 | * |
||
74 | * @return array |
||
75 | */ |
||
76 | public function configureSequence(): array |
||
80 | |||
81 | /** |
||
82 | * Set of commands to be executed in "spiral:update" command. |
||
83 | * |
||
84 | * @return array |
||
85 | */ |
||
86 | public function updateSequence(): array |
||
90 | } |