protected function execute(InputInterface $input, OutputInterface $output)
    {
        $logger = $this->getContainer()->get('ringo_php_redmon.instance_logger');
        $manager = $this->getContainer()->get('ringo_php_redmon.instance_manager');
        $instances = $manager->findAll();
        
        if(is_array($instances)) {
            foreach($instances as $instance) {
                $logger
                    ->setInstance($instance)
                    ->execute();
            }
        }
    }
protected function execute(InputInterface $input, OutputInterface $output)
    {
        $logger = $this->getContainer()->get('ringo_php_redmon.instance_logger');
        $manager = $this->getContainer()->get('ringo_php_redmon.instance_manager');
        $instances = $manager->findAll();
        
        if(is_array($instances)) {
            foreach($instances as $instance) {
                $logger
                    ->setInstance($instance)
                    ->execute();
            }
        }
    }
protected function execute ( InputInterface $ input , OutputInterface $ output ) { $ logger = $ this -> getContainer ( ) -> get ( 'ringo_php_redmon.instance_logger' ) ; $ manager = $ this -> getContainer ( ) -> get ( 'ringo_php_redmon.instance_manager' ) ; $ instances = $ manager -> findAll ( ) ; if ( is_array ( $ instances ) ) { foreach ( $ instances as $ instance ) { $ logger -> setInstance ( $ instance ) -> execute ( ) ; } } }
Execute task
Get all redis instances and log some of infos

@param \Symfony\Component\Console\Input\InputInterface $input
@param \Symfony\Component\Console\Output\OutputInterface $output
Execute task Get all redis instances and log some of infos