/** * @param InputInterface $input * @param OutputInterface $output * @return bool */ protected function execute(InputInterface $input, OutputInterface $output) { parent::_execute($input, $output); $scanner = new ModuleScanner(); $limit = (int) $input->getArgument("limit"); $scanner->updateAllModules($limit); $this->log("Done"); }
public function run() { $scanner = new ModuleScanner(); $modules = $scanner->getModules(); $template = $this->twig->loadTemplate("modules.twig"); $output = $template->render(["modules" => $modules]); print $output; }