Example #1
0
 /**
  * @param OutputInterface $output
  * @param Command $command
  *
  * @return bool
  */
 protected function skipCommand(OutputInterface $output, Command $command)
 {
     if (!$command instanceof CronCommandInterface) {
         $output->writeln('<error>Unable to setup, command must be instance of CronCommandInterface</error>');
         return true;
     }
     if (!$command->getDefaultDefinition()) {
         $output->writeln('<error>no cron definition found, check command</error>');
         return true;
     }
     return false;
 }