| 1 | <?php |
||
| 4 | class ClearTestDatabasesCommand extends SilverstripeCommand |
||
|
|
|||
| 5 | { |
||
| 6 | /** |
||
| 7 | * The console command name. |
||
| 8 | * |
||
| 9 | * @var string |
||
| 10 | */ |
||
| 11 | protected $name = 'clear:tmpdbs'; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * The console command description. |
||
| 15 | * |
||
| 16 | * @var string |
||
| 17 | */ |
||
| 18 | protected $description = 'Clear the test databases'; |
||
| 19 | |||
| 20 | public function fire() |
||
| 29 | |||
| 30 | protected function deleteAllTempDbs() { |
||
| 39 | } |
||
| 40 |
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.