summaryrefslogtreecommitdiffstats
path: root/Http/Authentication/DefaultAuthenticationFailureHandler.php
diff options
context:
space:
mode:
authorFabien Potencier <fabien.potencier@gmail.com>2015-01-16 23:00:38 +0100
committerFabien Potencier <fabien.potencier@gmail.com>2015-01-16 23:00:38 +0100
commit21f9153c0b2994a0c1ba3f498a1805de5b6990fa (patch)
tree27efccd4e22871730702d6031f05e5bda575302f /Http/Authentication/DefaultAuthenticationFailureHandler.php
parent5a21091f4faa5965beacc32fe3379f8a09ada0c0 (diff)
parente26eec7c5599a8ab6fd2b5c448e97970f2db3cf9 (diff)
downloadsymfony-security-21f9153c0b2994a0c1ba3f498a1805de5b6990fa.zip
symfony-security-21f9153c0b2994a0c1ba3f498a1805de5b6990fa.tar.gz
symfony-security-21f9153c0b2994a0c1ba3f498a1805de5b6990fa.tar.bz2
Merge branch '2.7'
* 2.7: [2.7] Added deprecated in debug command [FrameworkBundle] remove usage of deprecated Definition::setFactoryClass(), Definition::setFactoryService() and Definition::setFactoryMethod() methods. fixed some deprecated notices [Validator] fixed some legacy tests [Validator] fixed remaining notice [DX] Attempt to improve logging messages with parameters
Diffstat (limited to 'Http/Authentication/DefaultAuthenticationFailureHandler.php')
-rw-r--r--Http/Authentication/DefaultAuthenticationFailureHandler.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Http/Authentication/DefaultAuthenticationFailureHandler.php b/Http/Authentication/DefaultAuthenticationFailureHandler.php
index 8864dae..f8004d6 100644
--- a/Http/Authentication/DefaultAuthenticationFailureHandler.php
+++ b/Http/Authentication/DefaultAuthenticationFailureHandler.php
@@ -92,7 +92,7 @@ class DefaultAuthenticationFailureHandler implements AuthenticationFailureHandle
if ($this->options['failure_forward']) {
if (null !== $this->logger) {
- $this->logger->debug(sprintf('Forwarding to %s', $this->options['failure_path']));
+ $this->logger->debug('Authentication failure, forward triggered.', array('failure_path' => $this->options['failure_path']));
}
$subRequest = $this->httpUtils->createRequest($request, $this->options['failure_path']);
@@ -102,7 +102,7 @@ class DefaultAuthenticationFailureHandler implements AuthenticationFailureHandle
}
if (null !== $this->logger) {
- $this->logger->debug(sprintf('Redirecting to %s', $this->options['failure_path']));
+ $this->logger->debug('Authentication failure, redirect triggered.', array('failure_path' => $this->options['failure_path']));
}
$request->getSession()->set(Security::AUTHENTICATION_ERROR, $exception);