Commit 801e13c1 authored by Fabien Potencier's avatar Fabien Potencier

tweaked previous merge

parent 10884870
......@@ -51,8 +51,10 @@ are using apache you can use a ``.htaccess`` file for this.
to trust the `X-Forwarded-For*` headers, you will need to run your application
like this::
$request = Symfony\Component\HttpFoundation\Request::createFromGlobals();
$request::trustProxyData();
use Symfony\Component\HttpFoundation\Request;
Request::trustProxyData();
$request = Request::createFromGlobals();
$app->run($request);
Routing
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment