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');
}
}