How can I get module name in application:afterStartModule event ?
application:afterStartModule
The event will recieve two params: $application, $moduleInterface
You should be able to use $application->dispatcher->getModuleName(); or $application->router->getModuleName();
$application->dispatcher->getModuleName();
$application->router->getModuleName();
tnx a lot
but $application->dispatcher->getModuleName() return empty, the second one return true!
$application->dispatcher->getModuleName()