N98\Magento\Command\Developer\Module\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 ($input->getOption('format') === null) {
            $this->writeSection($output, 'Magento Modules');
        }
        $this->initMagento();
        $modules = $this->filterModules($input);
        if (!count($modules)) {
            $output->writeln("No modules match the specified criteria.");
            return;
        }
        /** @var TableHelper $table */
        $table = $this->getHelper('table');
        $table->setHeaders(array('codePool', 'Name', 'Version', 'Status'))->renderByFormat($output, iterator_to_array($modules), $input->getOption('format'));
    }