/**
* @param ActionEvent $actionEvent
*/
public function onRoute(ActionEvent $actionEvent)
{
if ($this->authorizationService->isGranted($actionEvent->getParam(MessageBus::EVENT_PARAM_MESSAGE_NAME), $actionEvent->getParam(MessageBus::EVENT_PARAM_MESSAGE))) {
return;
}
$actionEvent->stopPropagation(true);
throw new UnauthorizedException();
}