| 1 | <?php |
||
| 4 | class ClearCommand extends SilverstripeCommand |
||
|
|
|||
| 5 | { |
||
| 6 | /** |
||
| 7 | * The console command name. |
||
| 8 | * |
||
| 9 | * @var string |
||
| 10 | */ |
||
| 11 | protected $name = 'clear:cache'; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * The console command description. |
||
| 15 | * |
||
| 16 | * @var string |
||
| 17 | */ |
||
| 18 | protected $description = 'Clear the cache by deleting the files and rebuild the manifest'; |
||
| 19 | |||
| 20 | public function fire() |
||
| 30 | } |
||
| 31 |
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.