for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
class ClearCommand extends SilverstripeCommand
You can fix this by adding a namespace to your class:
namespace YourVendor; class YourClass { }
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.
{
/**
* The console command name.
*
* @var string
*/
protected $name = 'clear:cache';
* The console command description.
protected $description = 'Clear the cache by deleting the files and rebuild the manifest';
public function fire()
$this->info('Used cache location: ' . TEMP_FOLDER);
SS_ClassLoader::instance()->getManifest()->regenerate();
$this->info('regenerated manifest!');
ClassInfo::reset_db_cache();
$this->info('resetted db cache!');
}
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.