public function detectMagento(OutputInterface $output, $silent = true)
{
$this->getApplication()->detectMagento();
$this->_magentoEnterprise = $this->getApplication()->isMagentoEnterprise();
$this->_magentoRootFolder = $this->getApplication()->getMagentoRootFolder();
$this->_magentoMajorVersion = $this->getApplication()->getMagentoMajorVersion();
if (!$silent) {
$editionString = $this->_magentoEnterprise ? ' (Enterprise Edition) ' : '';
$output->writeln('<info>Found Magento ' . $editionString . 'in folder "' . $this->_magentoRootFolder . '"</info>');
}
if (!empty($this->_magentoRootFolder)) {
return;
}
throw new RuntimeException('Magento folder could not be detected');
}