From 8ecb1f973a985c73060a2df3374142a7986b0806 Mon Sep 17 00:00:00 2001 From: Andrea Bergamasco Date: Sat, 25 Apr 2020 15:00:23 +0200 Subject: [PATCH 1/2] [FrameworkBundle] [Routing] Added --sort to debug:router --- routing.rst | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/routing.rst b/routing.rst index 76184d7c8ef..76f8a41827b 100644 --- a/routing.rst +++ b/routing.rst @@ -354,6 +354,23 @@ evaluates them: blog_show ANY ANY ANY /blog/{slug} ---------------- ------- ------- ----- -------------------------------------------- +You can sort the routes by name or path using the ``--sort`` option + +.. code-block:: terminal + + $ php bin/console debug:router --sort=name + + ---------------- ------- ------- ----- -------------------------------------------- + Name Method Scheme Host Path + ---------------- ------- ------- ----- -------------------------------------------- + article_show ANY ANY ANY /articles/{_locale}/{year}/{title}.{_format} + blog ANY ANY ANY /blog/{page} + blog_show ANY ANY ANY /blog/{slug} + contact GET ANY ANY /contact + contact_process POST ANY ANY /contact + homepage ANY ANY ANY / + ---------------- ------- ------- ----- -------------------------------------------- + Pass the name (or part of the name) of some route to this argument to print the route details: From aef28a7467292da86a4a87779062c6f683562b1d Mon Sep 17 00:00:00 2001 From: Andrea Bergamasco Date: Sun, 26 Apr 2020 23:24:28 +0200 Subject: [PATCH 2/2] PR 13591 Added 'priority' via @noniagriconomie --- routing.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routing.rst b/routing.rst index 76f8a41827b..410d1c94354 100644 --- a/routing.rst +++ b/routing.rst @@ -354,7 +354,7 @@ evaluates them: blog_show ANY ANY ANY /blog/{slug} ---------------- ------- ------- ----- -------------------------------------------- -You can sort the routes by name or path using the ``--sort`` option +You can sort the routes by name, path or priority using the ``--sort`` option .. code-block:: terminal