protected function execute(InputInterface $input, OutputInterface $output)
    {
        $debug = $input->getOption('debug');
        $client = $this->getContainer()->get('beryllium_cache.client');

        if (is_object($client) && method_exists($client, 'getStats')) {
            $text = $this->formatStats($client->getStats(), $debug);
        } else {
            $text = 'Active cache client does not have a stats function.';
        }

        $output->writeln($text);
    }
protected function execute(InputInterface $input, OutputInterface $output)
    {
        $debug = $input->getOption('debug');
        $client = $this->getContainer()->get('beryllium_cache.client');

        if (is_object($client) && method_exists($client, 'getStats')) {
            $text = $this->formatStats($client->getStats(), $debug);
        } else {
            $text = 'Active cache client does not have a stats function.';
        }

        $output->writeln($text);
    }
protected function execute ( InputInterface $ input , OutputInterface $ output ) { $ debug = $ input -> getOption ( 'debug' ) ; $ client = $ this -> getContainer ( ) -> get ( 'beryllium_cache.client' ) ; if ( is_object ( $ client ) && method_exists ( $ client , 'getStats' ) ) { $ text = $ this -> formatStats ( $ client -> getStats ( ) , $ debug ) ; } else { $ text = 'Active cache client does not have a stats function.' ; } $ output -> writeln ( $ text ) ; }
Execute the CLI task

@param InputInterface $input
@param OutputInterface $output
@return void
Execute the CLI task