I want to limit access to certain routes (not paths) in the access_control tag in security.yml, but I found nothing in the cookbook or book that sh
access_control
security.yml
You can do it in many ways. For example by implementing own Security voter that will check matched route