You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: UPGRADE-6.0.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,6 +59,7 @@ FrameworkBundle
59
59
* The `form.factory`, `form.type.file`, `translator`, `security.csrf.token_manager`, `serializer`,
60
60
`cache_clearer`, `filesystem` and `validator` services are now private.
61
61
* Removed the `lock.RESOURCE_NAME` and `lock.RESOURCE_NAME.store` services and the `lock`, `LockInterface`, `lock.store` and `PersistingStoreInterface` aliases, use `lock.RESOURCE_NAME.factory`, `lock.factory` or `LockFactory` instead.
62
+
* Removed the `x-forwarded-all` option.
62
63
63
64
HttpFoundation
64
65
--------------
@@ -67,6 +68,7 @@ HttpFoundation
67
68
`RedirectResponse::create()`, and `StreamedResponse::create()` methods (use
68
69
`__construct()` instead)
69
70
* Not passing a `Closure` together with `FILTER_CALLBACK` to `ParameterBag::filter()` throws an `InvalidArgumentException`; wrap your filter in a closure instead.
71
+
* Removed the `Request::HEADER_X_FORWARDED_ALL` constant. Use a combination of `HEADER_X_FORWARDED_*` constants instead.
trigger_deprecation('symfony/framework-bundle', '5.3', 'The "x-forwarded-all" configuration option is deprecated, Use a combination of "x-forwarded-*" options instead.');
2299
2300
if (!\in_array('!x-forwarded-prefix', $headers)) {
2300
2301
thrownewLogicException('When using "x-forwarded-all" in "framework.trusted_headers", "!x-forwarded-prefix" must be explicitly listed until support for X-Forwarded-Prefix is implemented.');
if ($trustedHeaderSet === self::HEADER_X_FORWARDED_ALL) {
599
+
trigger_deprecation('symfony/http-fundation', '5.3', 'The "HEADER_X_FORWARDED_ALL" constant is deprecated, Use a combination of `HEADER_X_FORWARDED_*` constants instead.');
600
+
}
596
601
self::$trustedProxies = array_reduce($proxies, function ($proxies, $proxy) {
$this->expectDeprecation('Since symfony/http-fundation 5.3: The "HEADER_X_FORWARDED_ALL" constant is deprecated, Use a combination of `HEADER_X_FORWARDED_*` constants instead.');
0 commit comments