N98\Magento\Command\Developer\Ide\PhpStorm\MetaCommand::execute PHP Method

execute() protected method

protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : void
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
return void
    protected function execute(InputInterface $input, OutputInterface $output)
    {
        $this->detectMagento($output);
        if (!$this->initMagento()) {
            return;
        }
        if ($this->_magentoMajorVersion == self::MAGENTO_MAJOR_VERSION_1) {
            $classMaps = array();
            foreach ($this->groups as $group) {
                $classMaps[$group] = $this->getClassMapForGroup($group, $output);
                if (!$input->getOption('stdout') && count($classMaps[$group]) > 0) {
                    $output->writeln('<info>Generated definitions for <comment>' . $group . '</comment> group</info>');
                }
            }
            $this->writeToOutput($input, $output, $classMaps);
        } else {
            $output->write('Magento 2 is currently not supported');
        }
    }