| 1 | <?php |
||
| 4 | class ProtectSuperSakeCommand extends SilverstripeCommand |
||
|
|
|||
| 5 | { |
||
| 6 | /** |
||
| 7 | * The console command name. |
||
| 8 | * |
||
| 9 | * @var string |
||
| 10 | */ |
||
| 11 | protected $name = 'protect'; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * The console command description. |
||
| 15 | * |
||
| 16 | * @var string |
||
| 17 | */ |
||
| 18 | protected $description = 'PRevent direct file access by .htaccess and web.config'; |
||
| 19 | |||
| 20 | public function fire() |
||
| 24 | |||
| 25 | } |
||
| 26 |
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.