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 9f0f14e

Browse filesBrowse files
committed
feature #4210 Move debug commands to debug namespace (matthieuauger)
This PR was merged into the master branch. Discussion ---------- Move debug commands to debug namespace Related to symfony/symfony#11627 Should we specify that it has been added in 2.6 and that backward compatibility is ensured ? Commits ------- d6dd540 Move debug command to the debug namespace
2 parents a3400fd + d6dd540 commit 9f0f14e
Copy full SHA for 9f0f14e

File tree

Expand file treeCollapse file tree

5 files changed

+31
-16
lines changed
Filter options
Expand file treeCollapse file tree

5 files changed

+31
-16
lines changed

‎book/controller.rst

Copy file name to clipboardExpand all lines: book/controller.rst
+5-2Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -613,12 +613,15 @@ 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+
Prior to Symfony 2.6, this command was called ``container:debug``.
622625

623626
For more information, see the :doc:`/book/service_container` chapter.
624627

‎book/routing.rst

Copy file name to clipboardExpand all lines: book/routing.rst
+6-3Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1192,12 +1192,15 @@ 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+
Prior to Symfony 2.6, this command was called ``router:debug``.
12011204

12021205
This command will print a helpful list of *all* the configured routes in
12031206
your application:
@@ -1216,7 +1219,7 @@ the route name after the command:
12161219

12171220
.. code-block:: bash
12181221
1219-
$ php app/console router:debug article_show
1222+
$ php app/console debug:router article_show
12201223
12211224
Likewise, if you want to test whether a URL matches a given route, you can
12221225
use the ``router:match`` console command:

‎book/service_container.rst

Copy file name to clipboardExpand all lines: book/service_container.rst
+7-4Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1169,18 +1169,21 @@ 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+
Prior to Symfony 2.6, this command was called ``container:debug``.
11731176

11741177
By default only public services are shown, but you can also view private services:
11751178

11761179
.. code-block:: bash
11771180
1178-
$ php app/console container:debug --show-private
1181+
$ php app/console debug:container --show-private
11791182
11801183
.. note::
11811184

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

@@ -1189,7 +1192,7 @@ its id:
11891192

11901193
.. code-block:: bash
11911194
1192-
$ php app/console container:debug my_mailer
1195+
$ php app/console debug:container my_mailer
11931196
11941197
Learn more
11951198
----------

‎book/testing.rst

Copy file name to clipboardExpand all lines: book/testing.rst
+4-1Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,10 @@ 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+
Prior to Symfony 2.6, this command was called ``container:debug``.
463466

464467
.. tip::
465468

‎book/translation.rst

Copy file name to clipboardExpand all lines: book/translation.rst
+9-6Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -662,10 +662,13 @@ 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+
Prior to Symfony 2.6, this command was called ``translation:debug``.
666669

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

775778
.. code-block:: bash
776779
777-
$ php app/console translation:debug fr AcmeDemoBundle
780+
$ php app/console debug:translation fr AcmeDemoBundle
778781
779782
You will get this output:
780783

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

816819
.. code-block:: bash
817820
818-
$ php app/console translation:debug en AcmeDemoBundle --domain=messages
821+
$ php app/console debug:translation en AcmeDemoBundle --domain=messages
819822
820823
When bundles have a lot of messages, it is useful to display only the unused
821824
or only the missing messages, by using the ``--only-unused`` or ``--only-missing`` switches:
822825

823826
.. code-block:: bash
824827
825-
$ php app/console translation:debug en AcmeDemoBundle --only-unused
826-
$ php app/console translation:debug en AcmeDemoBundle --only-missing
828+
$ php app/console debug:translation en AcmeDemoBundle --only-unused
829+
$ php app/console debug:translation en AcmeDemoBundle --only-missing
827830
828831
Summary
829832
-------

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.