diff options
author | Christian Flothmann <christian.flothmann@xabbuh.de> | 2015-04-03 18:13:34 +0200 |
---|---|---|
committer | Christian Flothmann <christian.flothmann@xabbuh.de> | 2015-09-30 09:55:52 +0200 |
commit | d37cee9ea33b5ece6837253a15d83e0740074bba (patch) | |
tree | 476021f595a02fa111ccd0b29a38dd61cd14ea6a /Http/Authentication/DefaultAuthenticationFailureHandler.php | |
parent | 889a989997c4b038fb4e354e57e35ede82370581 (diff) | |
download | symfony-security-d37cee9ea33b5ece6837253a15d83e0740074bba.zip symfony-security-d37cee9ea33b5ece6837253a15d83e0740074bba.tar.gz symfony-security-d37cee9ea33b5ece6837253a15d83e0740074bba.tar.bz2 |
deprecate finding deep items in request parameters
Diffstat (limited to 'Http/Authentication/DefaultAuthenticationFailureHandler.php')
-rw-r--r-- | Http/Authentication/DefaultAuthenticationFailureHandler.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Http/Authentication/DefaultAuthenticationFailureHandler.php b/Http/Authentication/DefaultAuthenticationFailureHandler.php index f8004d6..3e63992 100644 --- a/Http/Authentication/DefaultAuthenticationFailureHandler.php +++ b/Http/Authentication/DefaultAuthenticationFailureHandler.php @@ -17,6 +17,7 @@ use Psr\Log\LoggerInterface; use Symfony\Component\Security\Core\Exception\AuthenticationException; use Symfony\Component\Security\Core\Security; use Symfony\Component\Security\Http\HttpUtils; +use Symfony\Component\Security\Http\ParameterBagUtils; /** * Class with the default authentication failure handling logic. @@ -82,7 +83,7 @@ class DefaultAuthenticationFailureHandler implements AuthenticationFailureHandle */ public function onAuthenticationFailure(Request $request, AuthenticationException $exception) { - if ($failureUrl = $request->get($this->options['failure_path_parameter'], null, true)) { + if ($failureUrl = ParameterBagUtils::getRequestParameterValue($request, $this->options['failure_path_parameter'])) { $this->options['failure_path'] = $failureUrl; } |