for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace MyBuilder\Bundle\CronosBundle\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
/**
* Dump the cron file that would be produced from the cron annotations in this project.
*/
class DumpCommand extends CommandBase
{
* @inheritdoc
protected function configure()
$this
->setName('cronos:dump')
->setDescription('Dump cron configuration');
$this->addServerOption();
}
protected function execute(InputInterface $input, OutputInterface $output)
$cron = $this->configureCronExport($input, $output);
$output->writeln('<info>We would have put the following in cron</info>');
$output->write($content = $cron->format());
return 0;