src/M6Web/Bundle/DaemonBundle/Command/DaemonCommand.php
protected function callIterationsIntervalCallbacks(InputInterface $input, OutputInterface $output)
    {
        foreach ($this->iterationsIntervalCallbacks as $iterationsIntervalCallback) {
            if (($this->getLoopCount() + 1) % $iterationsIntervalCallback['interval'] === 0) {
                call_user_func($iterationsIntervalCallback['callable'], $input, $output);
            }
        }
    }
protected function callIterationsIntervalCallbacks(InputInterface $input, OutputInterface $output)
    {
        foreach ($this->iterationsIntervalCallbacks as $iterationsIntervalCallback) {
            if (($this->getLoopCount() + 1) % $iterationsIntervalCallback['interval'] === 0) {
                call_user_func($iterationsIntervalCallback['callable'], $input, $output);
            }
        }
    }
protected function callIterationsIntervalCallbacks ( InputInterface $ input , OutputInterface $ output ) { foreach ( $ this -> iterationsIntervalCallbacks as $ iterationsIntervalCallback ) { if ( ( $ this -> getLoopCount ( ) + 1 ) % $ iterationsIntervalCallback [ 'interval' ] === 0 ) { call_user_func ( $ iterationsIntervalCallback [ 'callable' ] , $ input , $ output ) ; } } }
Execute callbacks after every iteration interval.
@param InputInterface $input
@param OutputInterface $output
Execute callbacks after every iteration interval .