aurny2420289
aurny2420289

Reputation: 491

Debug routes for specific controller

Is it possible to debug routes for special controller like :

php app/console router:debug PlayersController

Upvotes: 0

Views: 614

Answers (1)

Sander Toonen
Sander Toonen

Reputation: 3573

Nope, not like that. But you could just output all routes with their assigned controllers and then grep on the controller you want to debug. E.g.:

php app/console router:debug --show-controllers | grep PlayersController  

Or in the PowerShell in case you're stuck on Windows:

php app/console router:debug --show-controllers | Select-String -Pattern "PlayersController"

Upvotes: 1

Related Questions