@@ -69,34 +69,6 @@ cache files, or you can change the extension used by Symfony for these files::
69
69
70
70
$kernel->loadClassCache('classes', '.php.cache');
71
71
72
- Useful Debugging Commands
73
- -------------------------
74
-
75
- When developing a large application, it can be hard to keep track of all the
76
- different services, routes and translations. Luckily, Symfony has some commands
77
- that can help you visualize and find the information.
78
-
79
- ``debug:container ``
80
- Displays information about the contents of the Symfony container for all public
81
- services. To find only those matching a name, append the name as an argument.
82
-
83
- ``debug:config ``
84
- Shows all configured bundles, their class and their alias.
85
-
86
- ``debug:router ``
87
- Displays information about all configured routes in the application as a
88
- table with the name, method, scheme, host and path for each route.
89
-
90
- ``debug:translation <locale> ``
91
- Shows a table of the translation key, the domain, the translation and the
92
- fallback translation for all known messages, if translations exist for
93
- the given locale.
94
-
95
- .. tip ::
96
-
97
- When in doubt how to use a console command, open the help section by
98
- appending the ``--help `` option.
99
-
100
72
Dumping Variables with the VarDumper
101
73
------------------------------------
102
74
@@ -130,6 +102,34 @@ You can also dump values from inside templates:
130
102
{# dumps the variable to the web debug toolbar to not modify the template #}
131
103
{% dump myVar %}
132
104
105
+ Useful Debugging Commands
106
+ -------------------------
107
+
108
+ When developing a large application, it can be hard to keep track of all the
109
+ different services, routes and translations. Luckily, Symfony has some commands
110
+ that can help you visualize and find the information.
111
+
112
+ ``debug:container ``
113
+ Displays information about the contents of the Symfony container for all public
114
+ services. To find only those matching a name, append the name as an argument.
115
+
116
+ ``debug:config ``
117
+ Shows all configured bundles, their class and their alias.
118
+
119
+ ``debug:router ``
120
+ Displays information about all configured routes in the application as a
121
+ table with the name, method, scheme, host and path for each route.
122
+
123
+ ``debug:translation <locale> ``
124
+ Shows a table of the translation key, the domain, the translation and the
125
+ fallback translation for all known messages, if translations exist for
126
+ the given locale.
127
+
128
+ .. tip ::
129
+
130
+ When in doubt how to use a console command, open the help section by
131
+ appending the ``--help `` option.
132
+
133
133
.. _Xdebug : https://xdebug.org/
134
134
.. _PsySH : http://psysh.org/
135
135
.. _REPL : https://en.wikipedia.org/wiki/Read%E2%80%93eval%E2%80%93print_loop
0 commit comments