-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
trustProxyData does not exist anymore #1
Comments
Can you make a pull request? i'll look into that ASAP. |
i'm getting same issue in line 206 Fatal error: Call to undefined method Symfony\Component\HttpFoundation\Request::trustProxyData() in C:\Projects\Silex-Blog-App-master\Silex-Blog-App-master\App\config.php on line 206 is there any solution for this issue. i am beginner to symfony. i am using phpstorm as editor and installed composer. i have some questions regarding run this app.
Appreciate if you can give a complete installation guide to this app. |
Hi i'll get back to you shortly after I update the code current code to silex v2. Sorry for the delay. I will write write a complete installation guid. @TGihan |
It was replaced by setTrustedProxies, to achieve the same functionality you can do
Request::setTrustedProxies(array($request->server->get('REMOTE_ADDR')));
But this is a security issue, maybe it will be a good idea to add this in the config
This is what I'm getting now:
Fatal error: Call to undefined method Symfony\Component\HttpFoundation\Request::trustProxyData() in /var/www/everestlabs.com/App/config.php on line 206
The text was updated successfully, but these errors were encountered: