summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes M. Schmitt <schmittjoh@gmail.com>2011-03-08 09:49:42 +0100
committerJohannes M. Schmitt <schmittjoh@gmail.com>2011-03-10 10:25:32 +0100
commit4ad18ddf07435fe6fcb5ac47ef099419b0ad5a5b (patch)
tree50959b7ac50e9988fbccda2369df1a40b3997625
parentf0335ae722034233c2f49179bc6a9bf8ada62633 (diff)
downloadsymfony-security-4ad18ddf07435fe6fcb5ac47ef099419b0ad5a5b.zip
symfony-security-4ad18ddf07435fe6fcb5ac47ef099419b0ad5a5b.tar.gz
symfony-security-4ad18ddf07435fe6fcb5ac47ef099419b0ad5a5b.tar.bz2
[Security] fixed some left-overs
-rw-r--r--Http/Firewall/AbstractAuthenticationListener.php4
-rw-r--r--Http/Firewall/ContextListener.php4
2 files changed, 4 insertions, 4 deletions
diff --git a/Http/Firewall/AbstractAuthenticationListener.php b/Http/Firewall/AbstractAuthenticationListener.php
index 4e1f443..eefe2f4 100644
--- a/Http/Firewall/AbstractAuthenticationListener.php
+++ b/Http/Firewall/AbstractAuthenticationListener.php
@@ -49,10 +49,10 @@ abstract class AbstractAuthenticationListener implements ListenerInterface
{
protected $options;
protected $logger;
+ protected $authenticationManager;
+ protected $providerKey;
private $securityContext;
- private $authenticationManager;
private $sessionStrategy;
- private $providerKey;
private $eventDispatcher;
private $successHandler;
private $failureHandler;
diff --git a/Http/Firewall/ContextListener.php b/Http/Firewall/ContextListener.php
index d868278..c61885d 100644
--- a/Http/Firewall/ContextListener.php
+++ b/Http/Firewall/ContextListener.php
@@ -148,7 +148,7 @@ class ContextListener implements ListenerInterface
$token->setUser($provider->loadUser($user));
if (null !== $this->logger) {
- $this->logger->debug(sprintf('Username "%s" was reloaded from user provider.', $user));
+ $this->logger->debug(sprintf('Username "%s" was reloaded from user provider.', $user->getUsername()));
}
return $token;
@@ -156,7 +156,7 @@ class ContextListener implements ListenerInterface
// let's try the next user provider
} catch (UsernameNotFoundException $notFound) {
if (null !== $this->logger) {
- $this->logger->debug(sprintf('Username "%s" could not be found.', $user));
+ $this->logger->debug(sprintf('Username "%s" could not be found.', $user->getUsername()));
}
return null;