Hello,
I'm trying to access an url like 'www.example.com/controller/some-action' I'm using an event beforeDispatchLoop but is working only for 'www.example.com/controller/some_action' and as action it finds the default one 'index'. Seems like the router doesn't recognise it as an action.
$eventsManager->attach("dispatch:beforeDispatchLoop", function($event, $dispatcher) {
$dispatcher->setActionName(Text::camelize($dispatcher->getActionName()));
});
Thanks