@@ -69,11 +69,22 @@ accomplished easily and transparently:
6969
7070 .. code-block :: xml
7171
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" >
7580
76- <!-- ... -->
81+ <imports >
82+ <import resource =" config.xml" />
83+ </imports >
84+
85+ <!-- ... -->
86+
87+ </container >
7788
7889 .. code-block :: php
7990
@@ -104,11 +115,22 @@ configuration file:
104115 .. code-block :: xml
105116
106117 <!-- 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" />
110132
111- <webprofiler : config toolbar = " true " / >
133+ </ container >
112134
113135 .. code-block :: php
114136
@@ -201,7 +223,18 @@ this code and changing the environment string.
201223
202224 .. code-block :: xml
203225
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 >
205238
206239 .. code-block :: php
207240
@@ -283,13 +316,24 @@ The best way to accomplish this is via a new environment called, for example,
283316 .. code-block :: xml
284317
285318 <!-- 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 >
293337
294338 .. code-block :: php
295339
0 commit comments