renamed proxy setting to trust_proxy_headers

This commit is contained in:
Fabien Potencier 2011-07-06 17:42:58 +02:00
parent e943fde2ef
commit 722ad12a2d
4 changed files with 4 additions and 4 deletions

View File

@ -18,7 +18,7 @@ RC4 to RC5
following configuration:
framework:
proxy: true
trust_proxy_headers: true
* To avoid hidden naming collisions, the AbstractType does not try to define
the name of form types magically. You now need to implement the `getName()`

View File

@ -47,7 +47,7 @@ class Configuration implements ConfigurationInterface
$rootNode
->children()
->scalarNode('charset')->end()
->scalarNode('proxy')->defaultFalse()->end()
->scalarNode('trust_proxy_headers')->defaultFalse()->end()
->scalarNode('secret')->isRequired()->end()
->scalarNode('exception_controller')->defaultValue('Symfony\\Bundle\\FrameworkBundle\\Controller\\ExceptionController::showAction')->end()
->scalarNode('ide')->defaultNull()->end()

View File

@ -66,7 +66,7 @@ class FrameworkExtension extends Extension
$container->setParameter('kernel.secret', $config['secret']);
$container->setParameter('exception_listener.controller', $config['exception_controller']);
$container->setParameter('kernel.proxy', $config['proxy']);
$container->setParameter('kernel.trust_proxy_headers', $config['trust_proxy_headers']);
if (!empty($config['test'])) {
$loader->load('test.xml');

View File

@ -37,7 +37,7 @@ class FrameworkBundle extends Bundle
{
public function boot()
{
if ($this->container->getParameter('kernel.proxy')) {
if ($this->container->getParameter('kernel.trust_proxy_headers')) {
Request::trustProxyData();
}
}