@@ -283,7 +283,7 @@ respond and the user will receive a 500 response.
283283
284284 # app/config/config.yml
285285 framework :
286- trusted_hosts : ['acme .com', 'acme .org']
286+ trusted_hosts : ['example .com', 'example .org']
287287
288288 .. code-block :: xml
289289
@@ -296,8 +296,8 @@ respond and the user will receive a 500 response.
296296 http://symfony.com/schema/dic/symfony http://symfony.com/schema/dic/symfony/symfony-1.0.xsd" >
297297
298298 <framework : config >
299- <trusted-host >acme .com</trusted-host >
300- <trusted-host >acme .org</trusted-host >
299+ <trusted-host >example .com</trusted-host >
300+ <trusted-host >example .org</trusted-host >
301301 <!-- ... -->
302302 </framework >
303303 </container >
@@ -306,17 +306,17 @@ respond and the user will receive a 500 response.
306306
307307 // app/config/config.php
308308 $container->loadFromExtension('framework', array(
309- 'trusted_hosts' => array('acme .com', 'acme .org'),
309+ 'trusted_hosts' => array('example .com', 'example .org'),
310310 ));
311311
312- Hosts can also be configured using regular expressions (e.g. ``.*\.?acme .com$ ``),
312+ Hosts can also be configured using regular expressions (e.g. ``.*\.?example .com$ ``),
313313which make it easier to respond to any subdomain.
314314
315315In addition, you can also set the trusted hosts in the front controller
316316using the ``Request::setTrustedHosts() `` method::
317317
318318 // web/app.php
319- Request::setTrustedHosts(array('.*\.?acme .com$', '.*\.?acme .org$'));
319+ Request::setTrustedHosts(array('.*\.?example .com$', '.*\.?example .org$'));
320320
321321The default value for this option is an empty array, meaning that the application
322322can respond to any given host.
0 commit comments