protected function execute(InputInterface $input, OutputInterface $output)
    {
        $pollerNames   = $input->getOption('poller');
        $forceFullSync = $input->getOption('force-full-sync');

        if ($pollerNames) {
            $pollersToRun = [];
            foreach ($pollerNames as $name) {
                $pollersToRun[] = $this->pollerCollection->getPoller($name);
            }
        } else {
            $pollersToRun = $this->pollerCollection;
        }

        $exitCode = 0;
        foreach ($pollersToRun as $poller) {
            $isSuccessfulRun = $this->runPoller($poller, $forceFullSync, $output);
            if (!$isSuccessfulRun) {
                $exitCode = 1;
            }
        }

        return $exitCode;
    }
protected function execute(InputInterface $input, OutputInterface $output)
    {
        $pollerNames   = $input->getOption('poller');
        $forceFullSync = $input->getOption('force-full-sync');

        if ($pollerNames) {
            $pollersToRun = [];
            foreach ($pollerNames as $name) {
                $pollersToRun[] = $this->pollerCollection->getPoller($name);
            }
        } else {
            $pollersToRun = $this->pollerCollection;
        }

        $exitCode = 0;
        foreach ($pollersToRun as $poller) {
            $isSuccessfulRun = $this->runPoller($poller, $forceFullSync, $output);
            if (!$isSuccessfulRun) {
                $exitCode = 1;
            }
        }

        return $exitCode;
    }
protected function execute ( InputInterface $ input , OutputInterface $ output ) { $ pollerNames = $ input -> getOption ( 'poller' ) ; $ forceFullSync = $ input -> getOption ( 'force-full-sync' ) ; if ( $ pollerNames ) { $ pollersToRun = [ ] ; foreach ( $ pollerNames as $ name ) { $ pollersToRun [ ] = $ this -> pollerCollection -> getPoller ( $ name ) ; } } else { $ pollersToRun = $ this -> pollerCollection ; } $ exitCode = 0 ; foreach ( $ pollersToRun as $ poller ) { $ isSuccessfulRun = $ this -> runPoller ( $ poller , $ forceFullSync , $ output ) ; if ( ! $ isSuccessfulRun ) { $ exitCode = 1 ; } } return $ exitCode ; }
Tries to execute action specified

{@inheritdoc}
Tries to execute action specified