Symfony2 access control with routes

后端 未结 1 1573
天涯浪人
天涯浪人 2021-01-19 05:05

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

1条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-19 05:34

    You can do it in many ways. For example by implementing own Security voter that will check matched route

    0 讨论(0)
提交回复
热议问题