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 | * Indication that ConsoleDispatcher must locate commands. |
||
35 | * |
||
36 | * @return bool |
||
37 | */ |
||
38 | public function locateCommands(): bool |
||
47 | |||
48 | /** |
||
49 | * User defined set of commands (to be used when auto-location is off). |
||
50 | * |
||
51 | * @return array |
||
52 | */ |
||
53 | public function userCommands(): array |
||
62 | |||
63 | /** |
||
64 | * Set of commands to be executed in "spiral:configure" command. |
||
65 | * |
||
66 | * @return array |
||
67 | */ |
||
68 | public function configureSequence(): array |
||
72 | |||
73 | /** |
||
74 | * Set of commands to be executed in "spiral:update" command. |
||
75 | * |
||
76 | * @return array |
||
77 | */ |
||
78 | public function updateSequence(): array |
||
82 | } |