N98\Magento\Command\Config\DumpCommand::execute PHP Метод

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

protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : integer | null
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
Результат integer | null
    protected function execute(InputInterface $input, OutputInterface $output)
    {
        $this->detectMagento($output, true);
        if (!$this->initMagento()) {
            return;
        }
        $config = \Mage::app()->getConfig()->getNode($input->getArgument('xpath'));
        if (!$config) {
            throw new InvalidArgumentException('xpath was not found');
        }
        $dom = new \DOMDocument();
        $dom->preserveWhiteSpace = false;
        $dom->formatOutput = true;
        $dom->loadXML($config->asXml());
        $output->writeln($dom->saveXML(), OutputInterface::OUTPUT_RAW);
    }