summaryrefslogtreecommitdiffstats
path: root/Core/User/ChainUserProvider.php
diff options
context:
space:
mode:
authorAbhoryo <zenyaku@free.fr>2011-08-14 01:38:02 +0300
committerAbhoryo <zenyaku@free.fr>2011-08-14 01:38:02 +0300
commit621bf9b2780a860da4508fd1039ea626ea42faef (patch)
treea870658a3313f0e3be1efe7e5b160d4511fd1a69 /Core/User/ChainUserProvider.php
parentf65e28b6e57edd97e0639dd1686616da75fdf235 (diff)
downloadsymfony-security-621bf9b2780a860da4508fd1039ea626ea42faef.zip
symfony-security-621bf9b2780a860da4508fd1039ea626ea42faef.tar.gz
symfony-security-621bf9b2780a860da4508fd1039ea626ea42faef.tar.bz2
CS
Diffstat (limited to 'Core/User/ChainUserProvider.php')
-rw-r--r--Core/User/ChainUserProvider.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/Core/User/ChainUserProvider.php b/Core/User/ChainUserProvider.php
index 84aa012..b0556f7 100644
--- a/Core/User/ChainUserProvider.php
+++ b/Core/User/ChainUserProvider.php
@@ -60,15 +60,16 @@ class ChainUserProvider implements UserProviderInterface
} catch (UnsupportedUserException $unsupported) {
// try next one
} catch (UsernameNotFoundException $notFound) {
- // try next one
$supportedUserFound = true;
+ // try next one
}
}
- if ($supportedUserFound)
+ if ($supportedUserFound) {
throw new UsernameNotFoundException(sprintf('There is no user with name "%s".', $user->getUsername()));
- else
+ } else {
throw new UnsupportedUserException(sprintf('The account "%s" is not supported.', get_class($user)));
+ }
}
/**