1 | <?php |
||
4 | class ListInstalledModulesCommand extends SilverstripeCommand |
||
|
|||
5 | { |
||
6 | /** |
||
7 | * @var string |
||
8 | */ |
||
9 | protected $name = 'list:modules'; |
||
10 | |||
11 | /** |
||
12 | * @var string |
||
13 | */ |
||
14 | protected $description = 'List all installed modules'; |
||
15 | |||
16 | public function fire() |
||
21 | |||
22 | protected function getTableHeaders() |
||
26 | |||
27 | protected function getTableData() |
||
31 | |||
32 | /** |
||
33 | * @param string $file |
||
34 | * @return mixed |
||
35 | */ |
||
36 | protected function parseComposerFile($file) |
||
40 | |||
41 | /** |
||
42 | * @return string |
||
43 | */ |
||
44 | protected function getRootComposerFile() |
||
48 | |||
49 | protected function getInstalledModules() |
||
61 | } |
||
62 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.