@@ -487,20 +487,23 @@ evaluates them:
487
487
488
488
$ php bin/console debug:router
489
489
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
+ ---------------- ------- --------------------------------------------
500
500
501
501
# pass this option to also display all the defined route aliases
502
502
$ php bin/console debug:router --show-aliases
503
503
504
+ # pass this option to also display the associated controllers with the routes
505
+ $ php bin/console debug:router --show-controllers
506
+
504
507
# pass this option to only display routes that match the given HTTP method
505
508
# (you can use the special value ANY to see routes that match any method)
506
509
$ php bin/console debug:router --method=GET
@@ -510,6 +513,20 @@ evaluates them:
510
513
511
514
The ``--method `` option was introduced in Symfony 7.3.
512
515
516
+ .. versionadded :: 7.4
517
+
518
+ For sites that don't have routes with schemes or hosts defined those columns are hidden.
519
+
520
+ .. terminal
521
+
522
+ ---------------- ------- ------- ---------- ----------
523
+ Name Method Scheme Host Path
524
+ ---------------- ------- ------- ---------- ----------
525
+ homepage ANY http ANY /homapage
526
+ file GET https ANY /contact
527
+ contact_process POST ANY localhost /contact
528
+ ---------------- ------- ------- ---------- ----------
529
+
513
530
Pass the name (or part of the name) of some route to this argument to print the
514
531
route details:
515
532
0 commit comments