hice3000
hice3000

Reputation: 186

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?

Upvotes: 4

Views: 2883

Answers (1)

Ziumin
Ziumin

Reputation: 4860

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

Upvotes: 2

Related Questions