Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2bdb9f7

Browse filesBrowse files
author
Matthieu Auger
committed
Move debug commands to debug namespace
Related to symfony/symfony#11627
1 parent 1ea6304 commit 2bdb9f7
Copy full SHA for 2bdb9f7

File tree

Expand file treeCollapse file tree

6 files changed

+37
-17
lines changed
Filter options
Expand file treeCollapse file tree

6 files changed

+37
-17
lines changed

‎book/controller.rst

Copy file name to clipboardExpand all lines: book/controller.rst
+6-2Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -613,12 +613,16 @@ 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
622+
623+
.. versionadded:: 2.6
624+
The ``debug`` namespace was introduced in Symfony 2.6.
625+
Prior, the ``container:debug`` command must be used.
622626

623627
For more information, see the :doc:`/book/service_container` chapter.
624628

‎book/routing.rst

Copy file name to clipboardExpand all lines: book/routing.rst
+7-3Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1192,12 +1192,16 @@ 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
1201+
1202+
.. versionadded:: 2.6
1203+
The ``debug`` namespace was introduced in Symfony 2.6.
1204+
Prior, the ``router:debug`` command must be used.
12011205

12021206
This command will print a helpful list of *all* the configured routes in
12031207
your application:
@@ -1216,7 +1220,7 @@ the route name after the command:
12161220

12171221
.. code-block:: bash
12181222
1219-
$ php app/console router:debug article_show
1223+
$ php app/console debug:router article_show
12201224
12211225
Likewise, if you want to test whether a URL matches a given route, you can
12221226
use the ``router:match`` console command:

‎book/service_container.rst

Copy file name to clipboardExpand all lines: book/service_container.rst
+8-4Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1169,18 +1169,22 @@ 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
1173+
1174+
.. versionadded:: 2.6
1175+
The ``debug`` namespace was introduced in Symfony 2.6.
1176+
Prior, the ``container:debug`` command must be used.
11731177

11741178
By default only public services are shown, but you can also view private services:
11751179

11761180
.. code-block:: bash
11771181
1178-
$ php app/console container:debug --show-private
1182+
$ php app/console debug:container --show-private
11791183
11801184
.. note::
11811185

11821186
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
1187+
it won't be displayed by the ``debug:container`` command, even when using
11841188
the ``--show-private`` option. See :ref:`Inline Private Services <inlined-private-services>`
11851189
for more details.
11861190

@@ -1189,7 +1193,7 @@ its id:
11891193

11901194
.. code-block:: bash
11911195
1192-
$ php app/console container:debug my_mailer
1196+
$ php app/console debug:container my_mailer
11931197
11941198
Learn more
11951199
----------

‎book/testing.rst

Copy file name to clipboardExpand all lines: book/testing.rst
+5-1Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,11 @@ 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.
463+
464+
.. versionadded:: 2.6
465+
The ``debug`` namespace was introduced in Symfony 2.6.
466+
Prior, the ``container:debug`` command must be used.
463467

464468
.. tip::
465469

‎book/translation.rst

Copy file name to clipboardExpand all lines: book/translation.rst
+10-6Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -662,10 +662,14 @@ 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.
666+
667+
.. versionadded:: 2.6
668+
The ``debug`` namespace was introduced in Symfony 2.6.
669+
Prior, the ``translation:debug`` command must be used.
666670

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

775779
.. code-block:: bash
776780
777-
$ php app/console translation:debug fr AcmeDemoBundle
781+
$ php app/console debug:translation fr AcmeDemoBundle
778782
779783
You will get this output:
780784

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

816820
.. code-block:: bash
817821
818-
$ php app/console translation:debug en AcmeDemoBundle --domain=messages
822+
$ php app/console debug:translation en AcmeDemoBundle --domain=messages
819823
820824
When bundles have a lot of messages, it is useful to display only the unused
821825
or only the missing messages, by using the ``--only-unused`` or ``--only-missing`` switches:
822826

823827
.. code-block:: bash
824828
825-
$ php app/console translation:debug en AcmeDemoBundle --only-unused
826-
$ php app/console translation:debug en AcmeDemoBundle --only-missing
829+
$ php app/console debug:translation en AcmeDemoBundle --only-unused
830+
$ php app/console debug:translation en AcmeDemoBundle --only-missing
827831
828832
Summary
829833
-------

‎quick_tour/the_architecture.rst

Copy file name to clipboardExpand all lines: quick_tour/the_architecture.rst
+1-1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.