N98\Magento\Command\Cache\ListCommand::execute PHP Метод

execute() защищенный Метод

protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : integer | void
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
Результат integer | void
    protected function execute(InputInterface $input, OutputInterface $output)
    {
        $this->detectMagento($output, true);
        if (!$this->initMagento()) {
            return;
        }
        $cacheTypes = $this->_getCacheModel()->getTypes();
        $table = array();
        foreach ($cacheTypes as $cacheCode => $cacheInfo) {
            $table[] = array($cacheCode, $cacheInfo['status'] ? 'enabled' : 'disabled');
        }
        $this->getHelper('table')->setHeaders(array('code', 'status'))->renderByFormat($output, $table, $input->getOption('format'));
    }