0

With EventListener I use my lass TransactionListener. This class check permission for current url. Some URL are open. I check it by attribut "option" in routing.yml

For getting option on current route I use very slow method $route = $this->router->getRouteCollection()->get($e->getRequest()->attributes->get('_route'));

Do I have other opportunity to get option-datafrom current route? How to get fully route-object from current route name or request?

  • Does this answer your question? [How to get current route in Symfony 2?](https://stackoverflow.com/questions/7096546/how-to-get-current-route-in-symfony-2) – Evgeny Ruban Mar 20 '20 at 13:16
  • No, this return only actual route, witch you can translate into url, but it is impossible get more information about route, like "option" parameters. – Filip Štencl Mar 20 '20 at 14:55

0 Answers0