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
@trigger_error(sprintf('The "%s()" method is deprecated since Symfony 3.3 and will be removed in 4.0. Use the $trustedHeaderSet argument of the Request::setTrustedProxies() method instead.', __METHOD__), E_USER_DEPRECATED);
thrownew \InvalidArgumentException(sprintf('Unable to set the trusted header name for key "%s".', $key));
657
-
}
658
-
659
-
self::$trustedHeaders[$key] = $value;
660
-
661
-
if (null !== $value) {
662
-
self::$trustedHeaderNames[$key] = $value;
663
-
self::$trustedHeaderSet |= $key;
664
-
} else {
665
-
self::$trustedHeaderSet &= ~$key;
666
-
}
667
-
}
668
-
669
-
/**
670
-
* Gets the trusted proxy header name.
671
-
*
672
-
* @param string $key The header key
673
-
*
674
-
* @return string The header name
675
-
*
676
-
* @throws \InvalidArgumentException
677
-
*
678
-
* @deprecated since version 3.3, to be removed in 4.0. Use the Request::getTrustedHeaderSet() method instead.
679
-
*/
680
-
publicstaticfunctiongetTrustedHeaderName($key)
681
-
{
682
-
if (2 > \func_num_args() || func_get_arg(1)) {
683
-
@trigger_error(sprintf('The "%s()" method is deprecated since Symfony 3.3 and will be removed in 4.0. Use the Request::getTrustedHeaderSet() method instead.', __METHOD__), E_USER_DEPRECATED);
684
-
}
685
-
686
-
if (!\array_key_exists($key, self::$trustedHeaders)) {
687
-
thrownew \InvalidArgumentException(sprintf('Unable to get the trusted header name for key "%s".', $key));
688
-
}
689
-
690
-
returnself::$trustedHeaders[$key];
691
-
}
692
-
693
-
/**
694
-
>>>>>>> 3.4
695
620
* Normalizes a query string.
696
621
*
697
622
* It builds a normalized query string, where keys/value pairs are alphabetized,
0 commit comments