Silex-Blog-App
Silex-Blog-App copied to clipboard
trustProxyData does not exist anymore
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
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.
- How we edit database configurations (MongoDB) and can we open DB using robomongo application
- How i run this app using composer (can i run it normally as index,php or like thing)
- 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.
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