@@ -487,20 +487,23 @@ evaluates them:
487487
488488 $ php bin/console debug:router
489489
490- ---------------- ------- ------- ----- ------- -------------------------------------
491- Name Method Scheme Host Path
492- ---------------- ------- ------- ----- ------- -------------------------------------
493- homepage ANY ANY ANY /
494- contact GET ANY ANY /contact
495- contact_process POST ANY ANY /contact
496- article_show ANY ANY ANY /articles/{_locale}/{year}/{title}.{_format}
497- blog ANY ANY ANY /blog/{page}
498- blog_show ANY ANY ANY /blog/{slug}
499- ---------------- ------- ------- ----- ------- -------------------------------------
490+ ---------------- ------- --------------------------------------------
491+ Name Method Path
492+ ---------------- ------- --------------------------------------------
493+ homepage ANY /
494+ contact GET /contact
495+ contact_process POST /contact
496+ article_show ANY /articles/{_locale}/{year}/{title}.{_format}
497+ blog ANY /blog/{page}
498+ blog_show ANY /blog/{slug}
499+ ---------------- ------- --------------------------------------------
500500
501501 # pass this option to also display all the defined route aliases
502502 $ php bin/console debug:router --show-aliases
503503
504+ # pass this option to also display the associated controllers with the routes
505+ $ php bin/console debug:router --show-controllers
506+
504507 # pass this option to only display routes that match the given HTTP method
505508 # (you can use the special value ANY to see routes that match any method)
506509 $ php bin/console debug:router --method=GET
@@ -510,6 +513,22 @@ evaluates them:
510513
511514 The ``--method `` option was introduced in Symfony 7.3.
512515
516+ .. versionadded :: 7.4
517+
518+ For sites that don't have routes with schemes or hosts defined those columns are hidden.
519+
520+ .. code-block :: terminal
521+
522+ $ php bin/console debug:router
523+
524+ ------------ ------- ------- --------- ---------
525+ Name Method Scheme Host Path
526+ ------------ ------- ------- --------- ---------
527+ homepage ANY http ANY /homapage
528+ contact GET https ANY /contact
529+ contact_post POST ANY localhost /contact
530+ ------------ ------- ------- --------- ---------
531+
513532 Pass the name (or part of the name) of some route to this argument to print the
514533route details:
515534
0 commit comments