@@ -104,21 +104,26 @@ have installed `PhpStormOpener`_ and use PHPstorm, you will do something like:
|
104 | 104 |
|
105 | 105 | .. code-block:: yaml
|
106 | 106 |
|
| 107 | +# app/config/config.yml |
107 | 108 | framework:
|
108 | 109 | ide: "pstorm://%%f:%%l"
|
109 | 110 |
|
110 | 111 | .. code-block:: xml
|
111 | 112 |
|
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"> |
115 | 120 |
|
116 | 121 | <framework:config ide="pstorm://%%f:%%l" />
|
117 |
| -
|
118 | 122 | </container>
|
119 | 123 |
|
120 | 124 | .. code-block:: php
|
121 | 125 |
|
| 126 | +// app/config/config.php |
122 | 127 | $container->loadFromExtension('framework', array(
|
123 | 128 | 'ide' => 'pstorm://%%f:%%l',
|
124 | 129 | ));
|
@@ -158,17 +163,26 @@ see :doc:`/cookbook/request/load_balancer_reverse_proxy`.
|
158 | 163 |
|
159 | 164 | .. code-block:: yaml
|
160 | 165 |
|
| 166 | +# app/config/config.yml |
161 | 167 | framework:
|
162 | 168 | trusted_proxies: [192.0.0.1, 10.0.0.0/8]
|
163 | 169 |
|
164 | 170 | .. code-block:: xml
|
165 | 171 |
|
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> |
169 | 182 |
|
170 | 183 | .. code-block:: php
|
171 | 184 |
|
| 185 | +// app/config/config.php |
172 | 186 | $container->loadFromExtension('framework', array(
|
173 | 187 | 'trusted_proxies' => array('192.0.0.1', '10.0.0.0/8'),
|
174 | 188 | ));
|
@@ -285,9 +299,17 @@ the value to ``null``:
|
285 | 299 | .. code-block:: xml
|
286 | 300 |
|
287 | 301 | <!-- 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> |
291 | 313 |
|
292 | 314 | .. code-block:: php
|
293 | 315 |
|
@@ -373,15 +395,24 @@ Now, activate the ``assets_version`` option:
|
373 | 395 | .. code-block:: xml
|
374 | 396 |
|
375 | 397 | <!-- 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> |
379 | 410 |
|
380 | 411 | .. code-block:: php
|
381 | 412 |
|
382 | 413 | // app/config/config.php
|
383 | 414 | $container->loadFromExtension('framework', array(
|
384 |
| -..., |
| 415 | +// ... |
385 | 416 | 'templating' => array(
|
386 | 417 | 'engines' => array('twig'),
|
387 | 418 | 'assets_version' => 'v2',
|
|
0 commit comments