1 | <?php |
||
10 | class Module implements ConfigProviderInterface, AutoloaderProviderInterface, ConsoleUsageProviderInterface |
||
11 | { |
||
12 | |||
13 | /** |
||
14 | * Returns configuration to merge with application configuration |
||
15 | * |
||
16 | * @return array|\Traversable |
||
17 | */ |
||
18 | public function getConfig() |
||
22 | |||
23 | /** |
||
24 | * Return an array for passing to Zend\Loader\AutoloaderFactory. |
||
25 | * |
||
26 | * @return array |
||
27 | */ |
||
28 | public function getAutoloaderConfig() |
||
38 | |||
39 | /** |
||
40 | * Returns an array or a string containing usage information for this module's Console commands. |
||
41 | * The method is called with active Zend\Console\Adapter\AdapterInterface that can be used to directly access |
||
42 | * Console and send output. |
||
43 | * |
||
44 | * If the result is a string it will be shown directly in the console window. |
||
45 | * If the result is an array, its contents will be formatted to console window width. The array must |
||
46 | * have the following format: |
||
47 | * |
||
48 | * return array( |
||
49 | * 'Usage information line that should be shown as-is', |
||
50 | * 'Another line of usage info', |
||
51 | * |
||
52 | * '--parameter' => 'A short description of that parameter', |
||
53 | * '-another-parameter' => 'A short description of another parameter', |
||
54 | * ... |
||
55 | * ) |
||
56 | * |
||
57 | * @param AdapterInterface $console |
||
58 | * @return array|string|null |
||
59 | */ |
||
60 | public function getConsoleUsage(AdapterInterface $console) |
||
93 | } |
||
94 |