N98\Magento\Command\Developer\Module\Dependencies\OnCommand::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)
    {
        $moduleName = $input->getArgument('moduleName');
        $recursive = $input->getOption('all');
        if ($input->getOption('format') === null) {
            $this->writeSection($output, sprintf('List of module %s dependencies', $moduleName));
        }
        $this->detectMagento($output, true);
        $this->initMagento();
        try {
            $dependencies = $this->findModuleDependencies($moduleName, $recursive);
            if (!empty($dependencies)) {
                usort($dependencies, array($this, 'sortDependencies'));
            } else {
                $dependencies = array();
            }
            if ($input->getOption('format') === null && count($dependencies) === 0) {
                $output->writeln(sprintf("Module %s doesn't have dependencies", $moduleName));
            } else {
                $this->getHelper('table')->setHeaders(array('Name', 'Status', 'Current installed version', 'Code pool'))->setPadType(STR_PAD_LEFT)->renderByFormat($output, $dependencies, $input->getOption('format'));
            }
        } catch (Exception $e) {
            $output->writeln($e->getMessage());
        }
    }