settings = $settings;
$this->logger = $logger;
$this->translator = $translator;
$this->extmgr = $extmgr;
parent::__construct();
}
protected function configure()
{
$this->setName('ext:check')
->setDescription('Check extensions')
->setHelp('Checks all installed extensions for completeness and dependencies.')
;
}
protected function execute(InputInterface $input, OutputInterface $output) : int
{
$settings = $this->settings;
$logger = $this->logger;
$translator = $this->translator;
$extmgr = $this->extmgr;
$output->writeln("Using configuration from '".$settings->_configFilePath."'.", OutputInterface::VERBOSITY_VERBOSE);
$extconfs = $extmgr->getExtensionConfiguration();
foreach ($extconfs as $extname=>$extconf) {
if($extmgr->checkExtensionByDir($extname)) {
$output->writeln(sprintf("%s", $extname));
} else {
$output->writeln(sprintf("%s", $extname));
$errmsgs = $extmgr->getErrorMsgs();
foreach($errmsgs as $errmsg) {
$output->writeln(sprintf("%s", $errmsg));
}
}
}
return Command::SUCCESS;
}
}
// vim: ts=4 sw=4 expandtab