Skip to content
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

Open
Nenillo opened this issue Feb 16, 2014 · 3 comments
Open

trustProxyData does not exist anymore #1

Nenillo opened this issue Feb 16, 2014 · 3 comments

Comments

@Nenillo
Copy link

Nenillo commented Feb 16, 2014

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

@Mparaiso
Copy link
Owner

Can you make a pull request? i'll look into that ASAP.

@ghost
Copy link

ghost commented May 29, 2016

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.

  1. How we edit database configurations (MongoDB) and can we open DB using robomongo application
  2. How i run this app using composer (can i run it normally as index,php or like thing)
  3. When i comment above error line in config.php i m getting class 'Mongo' not found line 134 in config.php

Appreciate if you can give a complete installation guide to this app.

@Mparaiso
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants