@@ -69,37 +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:event-dispatcher ``
87
- Displays information about all the registered listeners in the event dispatcher.
88
-
89
- ``debug:router ``
90
- Displays information about all configured routes in the application as a
91
- table with the name, method, scheme, host and path for each route.
92
-
93
- ``debug:translation <locale> ``
94
- Shows a table of the translation key, the domain, the translation and the
95
- fallback translation for all known messages, if translations exist for
96
- the given locale.
97
-
98
- .. tip ::
99
-
100
- When in doubt how to use a console command, open the help section by
101
- appending the ``--help `` option.
102
-
103
72
Dumping Variables with the VarDumper
104
73
------------------------------------
105
74
@@ -133,6 +102,42 @@ You can also dump values from inside templates:
133
102
{# dumps the variable to the web debug toolbar to not modify the template #}
134
103
{% dump myVar %}
135
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:event-dispatcher ``
120
+ Displays information about all the registered listeners in the event dispatcher.
121
+
122
+ ``debug:router ``
123
+ Displays information about all configured routes in the application as a
124
+ table with the name, method, scheme, host and path for each route.
125
+
126
+ ``debug:translation <locale> ``
127
+ Shows a table of the translation key, the domain, the translation and the
128
+ fallback translation for all known messages, if translations exist for
129
+ the given locale.
130
+
131
+ .. tip ::
132
+
133
+ When in doubt how to use a console command, open the help section by
134
+ appending the ``--help `` option.
135
+
136
+ .. tip ::
137
+
138
+ When in doubt how to use a console command, open the help section by
139
+ appending the ``--help `` option.
140
+
136
141
.. _Xdebug : https://xdebug.org/
137
142
.. _PsySH : http://psysh.org/
138
143
.. _REPL : https://en.wikipedia.org/wiki/Read%E2%80%93eval%E2%80%93print_loop
0 commit comments