I want use Application function getModules in my controller,how can use it? thanks!
What I did was to add the application to the DI.
$di->setShared('app', $application);