@@ -104,21 +104,26 @@ have installed `PhpStormOpener`_ and use PHPstorm, you will do something like:
104104
105105 .. code-block :: yaml
106106
107+ # app/config/config.yml
107108 framework :
108109 ide : " pstorm://%%f:%%l"
109110
110111 .. code-block :: xml
111112
112- <?xml version =" 1.0" charset =" UTF-8" ?>
113- <container xmlns =" http://symfony.com/schema/dic/service"
114- xmlns : framework =" http://symfony.com/schema/dic/symfony" >
113+ <!-- app/config/config.xml -->
114+ <?xml version =" 1.0" encoding =" UTF-8" ?>
115+ <container xmlns =" http://symfony.com/schema/dic/services"
116+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
117+ xmlns : framework =" http://symfony.com/schema/dic/symfony"
118+ xsi : schemaLocation =" http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd
119+ http://symfony.com/schema/dic/symfony http://symfony.com/schema/dic/symfony/symfony-1.0.xsd" >
115120
116121 <framework : config ide =" pstorm://%%f:%%l" />
117-
118122 </container >
119123
120124 .. code-block :: php
121125
126+ // app/config/config.php
122127 $container->loadFromExtension('framework', array(
123128 'ide' => 'pstorm://%%f:%%l',
124129 ));
@@ -158,17 +163,26 @@ see :doc:`/cookbook/request/load_balancer_reverse_proxy`.
158163
159164 .. code-block :: yaml
160165
166+ # app/config/config.yml
161167 framework :
162168 trusted_proxies : [192.0.0.1, 10.0.0.0/8]
163169
164170 .. code-block :: xml
165171
166- <framework : config trusted-proxies =" 192.0.0.1, 10.0.0.0/8" >
167- <!-- ... -->
168- </framework >
172+ <!-- app/config/config.xml -->
173+ <?xml version =" 1.0" encoding =" UTF-8" ?>
174+ <container xmlns =" http://symfony.com/schema/dic/services"
175+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
176+ xmlns : framework =" http://symfony.com/schema/dic/symfony"
177+ xsi : schemaLocation =" http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd
178+ http://symfony.com/schema/dic/symfony http://symfony.com/schema/dic/symfony/symfony-1.0.xsd" >
179+
180+ <framework : config trusted-proxies =" 192.0.0.1, 10.0.0.0/8" />
181+ </container >
169182
170183 .. code-block :: php
171184
185+ // app/config/config.php
172186 $container->loadFromExtension('framework', array(
173187 'trusted_proxies' => array('192.0.0.1', '10.0.0.0/8'),
174188 ));
@@ -285,9 +299,17 @@ the value to ``null``:
285299 .. code-block :: xml
286300
287301 <!-- app/config/config.xml -->
288- <framework : config >
289- <framework : session save-path =" null" />
290- </framework : config >
302+ <?xml version =" 1.0" encoding =" UTF-8" ?>
303+ <container xmlns =" http://symfony.com/schema/dic/services"
304+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
305+ xmlns : framework =" http://symfony.com/schema/dic/symfony"
306+ xsi : schemaLocation =" http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd
307+ http://symfony.com/schema/dic/symfony http://symfony.com/schema/dic/symfony/symfony-1.0.xsd" >
308+
309+ <framework : config >
310+ <framework : session save-path =" null" />
311+ </framework : config >
312+ </container >
291313
292314 .. code-block :: php
293315
@@ -373,15 +395,24 @@ Now, activate the ``assets_version`` option:
373395 .. code-block :: xml
374396
375397 <!-- app/config/config.xml -->
376- <framework : templating assets-version =" v2" >
377- <framework : engine id =" twig" />
378- </framework : templating >
398+ <?xml version =" 1.0" encoding =" UTF-8" ?>
399+ <container xmlns =" http://symfony.com/schema/dic/services"
400+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
401+ xmlns : framework =" http://symfony.com/schema/dic/symfony"
402+ xsi : schemaLocation =" http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd
403+ http://symfony.com/schema/dic/symfony http://symfony.com/schema/dic/symfony/symfony-1.0.xsd" >
404+
405+ <framework : templating assets-version =" v2" >
406+ <!-- ... -->
407+ <framework : engine >twig</framework : engine >
408+ </framework : templating >
409+ </container >
379410
380411 .. code-block :: php
381412
382413 // app/config/config.php
383414 $container->loadFromExtension('framework', array(
384- ...,
415+ // ...
385416 'templating' => array(
386417 'engines' => array('twig'),
387418 'assets_version' => 'v2',
0 commit comments