php bin/console router:match
Helps debug routes by simulating a path info match
Usage
router:match [--method METHOD] [--scheme SCHEME] [--host HOST] [--] <path_info>
Arguments
path_info A path info
Options
--method Sets the HTTP method
--scheme Sets the URI scheme (usually http or https)
--host Sets the URI host
Help
The router:match shows which routes match a given request and which don't and for what reason:
php bin/console router:match /foo
or
php bin/console router:match /foo --method POST --scheme https --host symfony.com --verbose