8000 Move debug commands to debug namespace · matthieuauger/symfony-docs@2ff57c8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2ff57c8

Browse files
author
Matthieu Auger
committed
Move debug commands to debug namespace
Related to symfony/symfony#11627
1 parent 1ea6304 commit 2ff57c8

File tree

6 files changed

+17
-17
lines changed

6 files changed

+17
-17
lines changed

book/controller.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -613,12 +613,12 @@ via the ``get()`` method. Here are several common services you might need::
613613
$mailer = $this->get('mailer');
614614

615615
There are countless other services available and you are encouraged to define
616-
your own. To list all available services, use the ``container:debug`` console
616+
your own. To list all available services, use the ``debug:container`` console
617617
command:
618618

619619
.. code-block:: bash
620620
621-
$ php app/console container:debug
621+
$ php app/console debug:container
622622
623623
For more information, see the :doc:`/book/service_container` chapter.
624624

book/routing.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1192,12 +1192,12 @@ Visualizing & Debugging Routes
11921192

11931193
While adding and customizing routes, it's helpful to be able to visualize
11941194
and get detailed information about your routes. A great way to see every route
1195-
in your application is via the ``router:debug`` console command. Execute
1195+
in your application is via the ``debug:router`` console command. Execute
11961196
the command by running the following from the root of your project.
11971197

11981198
.. code-block:: bash
11991199
1200-
$ php app/console router:debug
1200+
$ php app/console debug:router
12011201
12021202
This command will print a helpful list of *all* the configured routes in
12031203
your application:
@@ -1216,7 +1216,7 @@ the route name after the command:
12161216

12171217
.. code-block:: bash
12181218
1219-
$ php app/console router:debug article_show
1219+
$ php app/console debug:router article_show
12201220
12211221
Likewise, if you want to test whether a URL matches a given route, you can
12221222
use the ``router:match`` console command:

book/service_container.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1169,18 +1169,18 @@ console. To show all services and the class for each service, run:
11691169

11701170
.. code-block:: bash
11711171
1172-
$ php app/console container:debug
1172+
$ php app/console debug:container
11731173
11741174
By default only public services are shown, but you can also view private services:
11751175

11761176
.. code-block:: bash
11771177
1178-
$ php app/console container:debug --show-private
1178+
$ php app/console debug:container --show-private
11791179
11801180
.. note::
11811181

11821182
If a private service is only used as an argument to just *one* other service,
1183-
it won't be displayed by the ``container:debug`` command, even when using
1183+
it won't be displayed by the ``debug:container`` command, even when using
11841184
the ``--show-private`` option. See :ref:`Inline Private Services <inlined-private-services>`
11851185
for more details.
11861186

@@ -1189,7 +1189,7 @@ its id:
11891189

11901190
.. code-block:: bash
11911191
1192-
$ php app/console container:debug my_mailer
1192+
$ php app/console debug:container my_mailer
11931193
11941194
Learn more
11951195
----------

book/testing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ injection container::
459459

460460
Be warned that this does not work if you insulate the client or if you use an
461461
HTTP layer. For a list of services available in your application, use the
462-
``container:debug`` console task.
462+
``debug:container`` console task.
463463

464464
.. tip::
465465

book/translation.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -662,10 +662,10 @@ Debugging Translations
662662
----------------------
663663

664664
.. versionadded:: 2.5
665-
The ``translation:debug`` command was introduced in Symfony 2.5.
665+
The ``debug:translation`` command was introduced in Symfony 2.5.
666666

667667
When maintaining a bundle, you may use or remove the usage of a translation
668-
message without updating all message catalogues. The ``translation:debug``
668+
message without updating all message catalogues. The ``debug:translation``
669669
command helps you to find these missing or unused translation messages for a
670670
given locale. It shows you a table with the result when translating the
671671
message in the given locale and the result when the fallback would be used.
@@ -774,7 +774,7 @@ To inspect all messages in the ``fr`` locale for the AcmeDemoBundle, run:
774774

775775
.. code-block:: bash
776776
777-
$ php app/console translation:debug fr AcmeDemoBundle
777+
$ php app/console debug:translation fr AcmeDemoBundle
778778
779779
You will get this output:
780780

@@ -815,15 +815,15 @@ By default all domains are inspected, but it is possible to specify a single dom
815815

816816
.. code-block:: bash
817817
818-
$ php app/console translation:debug en AcmeDemoBundle --domain=messages
818+
$ php app/console debug:translation en AcmeDemoBundle --domain=messages
819819
820820
When bundles have a lot of messages, it is useful to display only the unused
821821
or only the missing messages, by using the ``--only-unused`` or ``--only-missing`` switches:
822822

823823
.. code-block:: bash
824824
825-
$ php app/console translation:debug en AcmeDemoBundle --only-unused
826-
$ php app/console translation:debug en AcmeDemoBundle --only-missing
825+
$ php app/console debug:translation en AcmeDemoBundle --only-unused
826+
$ php app/console debug:translation en AcmeDemoBundle --only-missing
827827
828828
Summary
829829
-------

quick_tour/the_architecture.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ The ``--help`` option helps you discover the usage of a command:
314314

315315
.. code-block:: bash
316316
317-
$ php app/console router:debug --help
317+
$ php app/console debug:router --help
318318
319319
Final Thoughts
320320
--------------

0 commit comments

Comments
 (0)
0