@@ -69,11 +69,22 @@ accomplished easily and transparently:
69
69
70
70
.. code-block :: xml
71
71
72
- <imports >
73
- <import resource =" config.xml" />
74
- </imports >
72
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
73
+ <container xmlns =" http://symfony.com/schema/dic/services"
74
+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
75
+ xmlns : doctrine =" http://symfony.com/schema/dic/doctrine"
76
+ xsi : schemaLocation =" http://symfony.com/schema/dic/services
77
+ http://symfony.com/schema/dic/services/services-1.0.xsd
78
+ http://symfony.com/schema/dic/doctrine
79
+ http://symfony.com/schema/dic/doctrine/doctrine-1.0.xsd" >
75
80
76
- <!-- ... -->
81
+ <imports >
82
+ <import resource =" config.xml" />
83
+ </imports >
84
+
85
+ <!-- ... -->
86
+
87
+ </container >
77
88
78
89
.. code-block :: php
79
90
@@ -104,11 +115,22 @@ configuration file:
104
115
.. code-block :: xml
105
116
106
117
<!-- app/config/config_dev.xml -->
107
- <imports >
108
- <import resource =" config.xml" />
109
- </imports >
118
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
119
+ <container xmlns =" http://symfony.com/schema/dic/services"
120
+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
121
+ xmlns : webprofiler =" http://symfony.com/schema/dic/webprofiler"
122
+ xsi : schemaLocation =" http://symfony.com/schema/dic/services
123
+ http://symfony.com/schema/dic/services/services-1.0.xsd
124
+ http://symfony.com/schema/dic/webprofiler
125
+ http://symfony.com/schema/dic/webprofiler/webprofiler-1.0.xsd" >
126
+
127
+ <imports >
128
+ <import resource =" config.xml" />
129
+ </imports >
130
+
131
+ <webprofiler : config toolbar =" true" />
110
132
111
- <webprofiler : config toolbar = " true " / >
133
+ </ container >
112
134
113
135
.. code-block :: php
114
136
@@ -201,7 +223,18 @@ this code and changing the environment string.
201
223
202
224
.. code-block :: xml
203
225
204
- <doctrine : dbal logging =" %kernel.debug%" />
226
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
227
+ <container xmlns =" http://symfony.com/schema/dic/services"
228
+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
229
+ xmlns : doctrine =" http://symfony.com/schema/dic/doctrine"
230
+ xsi : schemaLocation =" http://symfony.com/schema/dic/services
231
+ http://symfony.com/schema/dic/services/services-1.0.xsd
232
+ http://symfony.com/schema/dic/doctrine
233
+ http://symfony.com/schema/dic/doctrine/doctrine-1.0.xsd" >
234
+
235
+ <doctrine : dbal logging =" %kernel.debug%" />
236
+
237
+ </container >
205
238
206
239
.. code-block :: php
207
240
@@ -283,13 +316,24 @@ The best way to accomplish this is via a new environment called, for example,
283
316
.. code-block :: xml
284
317
285
318
<!-- app/config/config_benchmark.xml -->
286
- <imports >
287
- <import resource =" config_prod.xml" />
288
- </imports >
289
-
290
- <framework : config >
291
- <framework : profiler only-exceptions =" false" />
292
- </framework : config >
319
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
320
+ <container xmlns =" http://symfony.com/schema/dic/services"
321
+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
322
+ xmlns : framework =" http://symfony.com/schema/dic/symfony"
323
+ xsi : schemaLocation =" http://symfony.com/schema/dic/services
324
+ http://symfony.com/schema/dic/services/services-1.0.xsd
325
+ http://symfony.com/schema/dic/symfony
326
+ http://symfony.com/schema/dic/symfony/symfony-1.0.xsd" >
327
+
328
+ <imports >
329
+ <import resource =" config_prod.xml" />
330
+ </imports >
331
+
332
+ <framework : config >
333
+ <framework : profiler only-exceptions =" false" />
334
+ </framework : config >
335
+
336
+ </container >
293
337
294
338
.. code-block :: php
295
339
0 commit comments