private function runPoller(Poller $poller, $forceFullSync, OutputInterface $output)
    {
        $output->write(
            sprintf("Run poller <info>%s</info>, force mode is <comment>%s</comment>: ", $poller->getName(), $forceFullSync ? 'on' : 'off')
        );
        try {
            $processed = $poller->poll($forceFullSync);
            $output->writeln("<info>OK</info> (Processed: <comment>$processed</comment>)");

            return true;
        } catch (Exception $e) {
            $output->writeln("<error>FAIL</error> (Details: <error>{$e->getMessage()}</error>)");

            return false;
        }
    }
private function runPoller(Poller $poller, $forceFullSync, OutputInterface $output)
    {
        $output->write(
            sprintf("Run poller <info>%s</info>, force mode is <comment>%s</comment>: ", $poller->getName(), $forceFullSync ? 'on' : 'off')
        );
        try {
            $processed = $poller->poll($forceFullSync);
            $output->writeln("<info>OK</info> (Processed: <comment>$processed</comment>)");

            return true;
        } catch (Exception $e) {
            $output->writeln("<error>FAIL</error> (Details: <error>{$e->getMessage()}</error>)");

            return false;
        }
    }
private function runPoller ( Poller $ poller , $ forceFullSync , OutputInterface $ output ) { $ output -> write ( sprintf ( "Run poller <info>%s</info>, force mode is <comment>%s</comment>: " , $ poller -> getName ( ) , $ forceFullSync ? 'on' : 'off' ) ) ; try { $ processed = $ poller -> poll ( $ forceFullSync ) ; $ output -> writeln ( "<info>OK</info> (Processed: <comment>$processed</comment>)" ) ; return true ; } catch ( Exception $ e ) { $ output -> writeln ( "<error>FAIL</error> (Details: <error>{$e->getMessage()}</error>)" ) ; return false ; } }
Runs poller specified

@param Poller          $poller        poller
@param bool            $forceFullSync force full sync mode flag
@param OutputInterface $output        output

@return bool
Runs poller specified