Hi all, how can by route path or route name check belongs to resource this route?
Or how check menu punk for permission?? i use rbac bundle
You can use the
debug:router command and then look in the output for the route you are looking for. In Linux you could do something like this:
bin/console debug:router | grep '/api'
to get all the API Routes. On the left you see the route name. If you then call the
debug:router command again with the name of the route you get the controller it belongs to.