Silex-Blog-App icon indicating copy to clipboard operation
Silex-Blog-App copied to clipboard

trustProxyData does not exist anymore

Open Nenillo opened this issue 11 years ago • 3 comments

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

Nenillo avatar Feb 16 '14 16:02 Nenillo

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

Mparaiso avatar Jun 11 '14 19:06 Mparaiso

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.

ghost avatar May 29 '16 14:05 ghost

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

Mparaiso avatar Aug 12 '16 13:08 Mparaiso