<?php
namespace ApplicationBundle\Command;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Input\InputArgument;
class ScheduledBigRowEntryCommand extends ContainerAwareCommand
{
protected function configure()
{
$this->setName('inno:scheduled-big-data')
->setDescription('Scheduled Check and send email or other notification or reminder.')
->setHelp("")
->addArgument('loop', InputArgument::OPTIONAL, 'Who do you want to greet?')
// ->addArgument('last_name', InputArgument::OPTIONAL, 'Your last name?')
;
}
protected function execute(InputInterface $input, OutputInterface $output)
{
$loop=0;
$loopFlag = $input->getArgument('loop');
if ($loopFlag) {
$loop = $loopFlag;
}
$output->writeln([
'HoneyBee Big Data Entry Monitor',
'===========================',
'',
]);
$scheduler = $this->getContainer()->get('scheduler_service');
// $to_print=$app_data->UpdatePostDatedTransaction();
// $output->writeln($to_print);
$to_print=$scheduler->addLotsOfRows();
$output->writeln($to_print);
}
}