@@ -101,21 +101,26 @@ have installed `PhpStormOpener`_ and use PHPstorm, you will do something like:
101
101
102
102
.. code-block :: yaml
103
103
104
+ # app/config/config.yml
104
105
framework :
105
106
ide : " pstorm://%%f:%%l"
106
107
107
108
.. code-block :: xml
108
109
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" >
112
117
113
118
<framework : config ide =" pstorm://%%f:%%l" />
114
-
115
119
</container >
116
120
117
121
.. code-block :: php
118
122
123
+ // app/config/config.php
119
124
$container->loadFromExtension('framework', array(
120
125
'ide' => 'pstorm://%%f:%%l',
121
126
));
@@ -155,17 +160,26 @@ see :doc:`/cookbook/request/load_balancer_reverse_proxy`.
155
160
156
161
.. code-block :: yaml
157
162
163
+ # app/config/config.yml
158
164
framework :
159
165
trusted_proxies : [192.0.0.1, 10.0.0.0/8]
160
166
161
167
.. code-block :: xml
162
168
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 >
166
179
167
180
.. code-block :: php
168
181
182
+ // app/config/config.php
169
183
$container->loadFromExtension('framework', array(
170
184
'trusted_proxies' => array('192.0.0.1', '10.0.0.0/8'),
171
185
));
@@ -282,9 +296,17 @@ the value to ``null``:
282
296
.. code-block :: xml
283
297
284
298
<!-- 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 >
288
310
289
311
.. code-block :: php
290
312
@@ -370,15 +392,24 @@ Now, activate the ``assets_version`` option:
370
392
.. code-block :: xml
371
393
372
394
<!-- 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 >
376
407
377
408
.. code-block :: php
378
409
379
410
// app/config/config.php
380
411
$container->loadFromExtension('framework', array(
381
- ...,
412
+ // ...
382
413
'templating' => array(
383
414
'engines' => array('twig'),
384
415
'assets_version' => 'v2',
0 commit comments