@@ -22,7 +22,6 @@ Configuration
22
22
23
23
* `secret `_
24
24
* `http_method_override `_
25
- * `trusted_proxies `_
26
25
* `ide `_
27
26
* `test `_
28
27
* `default_locale `_
@@ -183,44 +182,13 @@ named ``kernel.http_method_override``.
183
182
$request = Request::createFromGlobals();
184
183
// ...
185
184
185
+
186
186
.. _reference-framework-trusted-proxies :
187
187
188
188
trusted_proxies
189
189
~~~~~~~~~~~~~~~
190
190
191
- **type **: ``array ``
192
-
193
- Configures the IP addresses that should be trusted as proxies. For more
194
- details, see :doc: `/request/load_balancer_reverse_proxy `.
195
-
196
- .. configuration-block ::
197
-
198
- .. code-block :: yaml
199
-
200
- # app/config/config.yml
201
- framework :
202
- trusted_proxies : [192.0.0.1, 10.0.0.0/8]
203
-
204
- .. code-block :: xml
205
-
206
- <!-- app/config/config.xml -->
207
- <?xml version =" 1.0" encoding =" UTF-8" ?>
208
- <container xmlns =" http://symfony.com/schema/dic/services"
209
- xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
210
- xmlns : framework =" http://symfony.com/schema/dic/symfony"
211
- xsi : schemaLocation =" http://symfony.com/schema/dic/services
212
- http://symfony.com/schema/dic/services/services-1.0.xsd
213
- http://symfony.com/schema/dic/symfony http://symfony.com/schema/dic/symfony/symfony-1.0.xsd" >
214
-
215
- <framework : config trusted-proxies =" 192.0.0.1, 10.0.0.0/8" />
216
- </container >
217
-
218
- .. code-block :: php
219
-
220
- // app/config/config.php
221
- $container->loadFromExtension('framework', array(
222
- 'trusted_proxies' => array('192.0.0.1', '10.0.0.0/8'),
223
- ));
191
+ The ``trusted_proxies `` option was removed in Symfony 3.3. See :doc: `/request/load_balancer_reverse_proxy `.
224
192
225
193
ide
226
194
~~~
0 commit comments