| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | <?php |
||
| 43 | protected function execute(InputInterface $input, OutputInterface $output) |
||
| 44 | { |
||
| 45 | $appName = 'PPI'; |
||
| 46 | $mm = $this->getServiceManager()->get('ModuleManager'); |
||
| 47 | $modules = $mm->getLoadedModules(true); |
||
| 48 | |||
| 49 | $output->writeln(sprintf('%s is running with <info>%d</info> modules loaded.', $appName, count($modules))); |
||
| 50 | |||
| 51 | foreach ($modules as $module) { |
||
| 52 | $output->writeln(PHP_EOL . '<info>' . $module->getName() . '</info>'); |
||
| 53 | $output->writeln(' - <comment>namespace:</comment> ' . $module->getNamespace()); |
||
| 54 | $output->writeln(' - <comment>path:</comment> ' . $module->getPath()); |
||
| 55 | } |
||
| 56 | } |
||
| 57 | } |
||
| 58 |