I trying to get the matched route name and controller - action name, in ZF3 I want this in Module.php,
as i have tried-
public function onBootstrap(MvcEvent $e)
{
$app = $e->getApplication();
$em = $app->getEventManager()->getSharedManager();
$sm = $app->getServiceManager();
$routeMatch = $sm->get('Application')->getMvcEvent()->getRouteMatch();
}
but it returns null,
Thanks in advance