php bin/console router:match

Help 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   Set the HTTP method 
      --scheme   Set the URI scheme (usually http or https) 
      --host     Set 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