mirror of
https://github.com/symfony/recipes.git
synced 2026-09-16 01:26:25 +03:00
updated setTrustedProxies() to the new syntax
This commit is contained in:
@@ -31,8 +31,7 @@ if (getenv('APP_DEBUG')) {
|
||||
Debug::enable();
|
||||
}
|
||||
|
||||
// Request::setTrustedProxiestTrustedHeaderName(Request::HEADER_FORWARDED, null);
|
||||
// Request::setTrustedProxies(['0.0.0.0/0']);
|
||||
// Request::setTrustedProxies(['0.0.0.0/0'], Request::HEADER_FORWARDED);
|
||||
|
||||
$kernel = new Kernel(getenv('APP_ENV'), getenv('APP_DEBUG'));
|
||||
$request = Request::createFromGlobals();
|
||||
|
||||
Reference in New Issue
Block a user