1 | <?php |
||
6 | class BuildCommand extends SilverstripeCommand |
||
|
|||
7 | { |
||
8 | /** |
||
9 | * @var string |
||
10 | */ |
||
11 | protected $name = 'dev:build'; |
||
12 | |||
13 | /** |
||
14 | * @var string |
||
15 | */ |
||
16 | protected $description = 'Rebuild the database'; |
||
17 | |||
18 | CONST CHANGE = '+'; |
||
19 | CONST DELETE = '-'; |
||
20 | CONST NOTICE = '*'; |
||
21 | CONST ERROR = '!'; |
||
22 | |||
23 | public function fire() |
||
40 | |||
41 | protected function displayBuildMessage($buildMessage) |
||
62 | |||
63 | /** |
||
64 | * @param string $message |
||
65 | * @param string$replace |
||
66 | * @return string |
||
67 | */ |
||
68 | protected function parseMessage($message, $replace = '') |
||
76 | } |
||
77 |
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.