symfony - Symfony2 count how many route we have -
Do we believe how many routes are there on Symphon 2?
I can get a list of available paths in production environment with this console command:
$ app / console router: debug -e prod
There will be a way to use the router service if you are using it inside a controller You can get a countdown with them:
But if you want to count on a different location, you should use the service container (which is what the administrator does for you). If you are new to the Symphony Service container or would like more information about this feature, see the documentation.
Comments
Post a Comment