N98\Magento\Command\Developer\EmailTemplate\UsageCommand::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);
        $this->initMagento();
        $templates = $this->findEmailTemplates();
        if (!empty($templates)) {
            $this->getHelper('table')->setHeaders(array('id', 'Name', 'Scope', 'Scope Id', 'Path'))->renderByFormat($output, $templates, $input->getOption('format'));
        } else {
            $output->writeln("No transactional email templates stored in the database.");
        }
    }