src/ApplicationBundle/Command/ScheduledBigRowEntryCommand.php line 10

Open in your IDE?
  1. <?php
  2. namespace ApplicationBundle\Command;
  3. use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
  4. use Symfony\Component\Console\Input\InputInterface;
  5. use Symfony\Component\Console\Output\OutputInterface;
  6. use Symfony\Component\Console\Input\InputArgument;
  7. class ScheduledBigRowEntryCommand extends ContainerAwareCommand
  8. {
  9.     protected function configure()
  10.     {
  11.         $this->setName('inno:scheduled-big-data')
  12.             ->setDescription('Scheduled Check and send email or other notification or reminder.')
  13.             ->setHelp("")
  14.             ->addArgument('loop'InputArgument::OPTIONAL'Who do you want to greet?')
  15. //            ->addArgument('last_name', InputArgument::OPTIONAL, 'Your last name?')
  16.         ;
  17.     }
  18.     protected function execute(InputInterface $inputOutputInterface $output)
  19.     {
  20.         $loop=0;
  21.         $loopFlag $input->getArgument('loop');
  22.         if ($loopFlag) {
  23.             $loop $loopFlag;
  24.         }
  25.         $output->writeln([
  26.             'HoneyBee Big Data Entry Monitor',
  27.             '===========================',
  28.             '',
  29.         ]);
  30.         $scheduler $this->getContainer()->get('scheduler_service');
  31. //        $to_print=$app_data->UpdatePostDatedTransaction();
  32. //        $output->writeln($to_print);
  33.         $to_print=$scheduler->addLotsOfRows();
  34.         $output->writeln($to_print);
  35.     }
  36. }