Hot answers tagged

1

The flagging events don't deal with responses, so you won't be able to return one from there. A different approach is to create a route subscriber, and alter the flag.action_link_flag and flag.action_unlink_flag routes, replacing the controller with your own custom one, e.g. protected function alterRoutes(RouteCollection $collection) { if ($route = $...


Only top voted, non community-wiki answers of a minimum length are eligible