9 use Symfony\Component\Console\Command\Command;
10 use Symfony\Component\Console\Input\InputInterface;
11 use Symfony\Component\Console\Output\OutputInterface;
23 private $crontabManager;
30 $this->crontabManager = $crontabManager;
32 parent::__construct();
40 $this->setName(
'cron:remove')
41 ->setDescription(
'Removes tasks from crontab');
52 $this->crontabManager->removeTasks();
54 $output->writeln(
'<error>' . $e->getMessage() .
'</error>');
58 $output->writeln(
'<info>Magento cron tasks have been removed</info>');
__construct(CrontabManagerInterface $crontabManager)
execute(InputInterface $input, OutputInterface $output)