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 shows me how to. Does anyone else know?
You can do it in many ways. For example by implementing own Security voter that will check matched route
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.