What I do wrong in my cli command file? thrown error when try to clean cache like this "There are no commands defined in the "cache" namespace."
class Hicustomer extends Command
{
protected $myblockobject;
public function __construct(\Vendor\Extension\Block\Mycustomblock $myblockobject)
{
$this->myblockobject = $myblockobject;
parent::__construct();
}
protected function configure()
{
$this->setName('cloudways:hicustomer');
$this->setDescription('Demo command line');
parent::configure();
}
protected function execute(InputInterface $input, OutputInterface $output)
{
$myblockobject = $this->myblockobject->create()->MyCustomFunction();
$output->writeln("Hi Customer");
}
}