简体   繁体   中英

Symfony2 access control with routes

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM