How to get loaded module names

zend-mvc

#1

please let me know how it is possible to obtain names of loaded modules in zf3.


#2

I never tried this myself, but I think you can do it like this:

$moduleManager = $serviceManager->get('ModuleManager');
$loadedModules = $moduleManager->getLoadedModules();