@@ -101,21 +101,26 @@ have installed `PhpStormOpener`_ and use PHPstorm, you will do something like:
101101
102102 .. code-block :: yaml
103103
104+ # app/config/config.yml
104105 framework :
105106 ide : " pstorm://%%f:%%l"
106107
107108 .. code-block :: xml
108109
109- <?xml version =" 1.0" charset =" UTF-8" ?>
110- <container xmlns =" http://symfony.com/schema/dic/service"
111- xmlns : framework =" http://symfony.com/schema/dic/symfony" >
110+ <!-- app/config/config.xml -->
111+ <?xml version =" 1.0" encoding =" UTF-8" ?>
112+ <container xmlns =" http://symfony.com/schema/dic/services"
113+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
114+ xmlns : framework =" http://symfony.com/schema/dic/symfony"
115+ xsi : schemaLocation =" http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd
116+ http://symfony.com/schema/dic/symfony http://symfony.com/schema/dic/symfony/symfony-1.0.xsd" >
112117
113118 <framework : config ide =" pstorm://%%f:%%l" />
114-
115119 </container >
116120
117121 .. code-block :: php
118122
123+ // app/config/config.php
119124 $container->loadFromExtension('framework', array(
120125 'ide' => 'pstorm://%%f:%%l',
121126 ));
@@ -155,17 +160,26 @@ see :doc:`/cookbook/request/load_balancer_reverse_proxy`.
155160
156161 .. code-block :: yaml
157162
163+ # app/config/config.yml
158164 framework :
159165 trusted_proxies : [192.0.0.1, 10.0.0.0/8]
160166
161167 .. code-block :: xml
162168
163- <framework : config trusted-proxies =" 192.0.0.1, 10.0.0.0/8" >
164- <!-- ... -->
165- </framework >
169+ <!-- app/config/config.xml -->
170+ <?xml version =" 1.0" encoding =" UTF-8" ?>
171+ <container xmlns =" http://symfony.com/schema/dic/services"
172+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
173+ xmlns : framework =" http://symfony.com/schema/dic/symfony"
174+ xsi : schemaLocation =" http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd
175+ http://symfony.com/schema/dic/symfony http://symfony.com/schema/dic/symfony/symfony-1.0.xsd" >
176+
177+ <framework : config trusted-proxies =" 192.0.0.1, 10.0.0.0/8" />
178+ </container >
166179
167180 .. code-block :: php
168181
182+ // app/config/config.php
169183 $container->loadFromExtension('framework', array(
170184 'trusted_proxies' => array('192.0.0.1', '10.0.0.0/8'),
171185 ));
@@ -282,9 +296,17 @@ the value to ``null``:
282296 .. code-block :: xml
283297
284298 <!-- app/config/config.xml -->
285- <framework : config >
286- <framework : session save-path =" null" />
287- </framework : config >
299+ <?xml version =" 1.0" encoding =" UTF-8" ?>
300+ <container xmlns =" http://symfony.com/schema/dic/services"
301+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
302+ xmlns : framework =" http://symfony.com/schema/dic/symfony"
303+ xsi : schemaLocation =" http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd
304+ http://symfony.com/schema/dic/symfony http://symfony.com/schema/dic/symfony/symfony-1.0.xsd" >
305+
306+ <framework : config >
307+ <framework : session save-path =" null" />
308+ </framework : config >
309+ </container >
288310
289311 .. code-block :: php
290312
@@ -370,15 +392,24 @@ Now, activate the ``assets_version`` option:
370392 .. code-block :: xml
371393
372394 <!-- app/config/config.xml -->
373- <framework : templating assets-version =" v2" >
374- <framework : engine id =" twig" />
375- </framework : templating >
395+ <?xml version =" 1.0" encoding =" UTF-8" ?>
396+ <container xmlns =" http://symfony.com/schema/dic/services"
397+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
398+ xmlns : framework =" http://symfony.com/schema/dic/symfony"
399+ xsi : schemaLocation =" http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd
400+ http://symfony.com/schema/dic/symfony http://symfony.com/schema/dic/symfony/symfony-1.0.xsd" >
401+
402+ <framework : templating assets-version =" v2" >
403+ <!-- ... -->
404+ <framework : engine >twig</framework : engine >
405+ </framework : templating >
406+ </container >
376407
377408 .. code-block :: php
378409
379410 // app/config/config.php
380411 $container->loadFromExtension('framework', array(
381- ...,
412+ // ...
382413 'templating' => array(
383414 'engines' => array('twig'),
384415 'assets_version' => 'v2',
0 commit comments