summaryrefslogtreecommitdiffstats
path: root/Core/User/ChainUserProvider.php
diff options
context:
space:
mode:
authorrealmfoo <konstantin.leboev@gmail.com>2011-08-10 10:59:19 +0400
committerrealmfoo <konstantin.leboev@gmail.com>2011-08-10 10:59:19 +0400
commitb33e8d2376f20761911faa654d85790d61a29019 (patch)
tree91ef528a24e416523bb25859a702d8d859a0e2af /Core/User/ChainUserProvider.php
parent111f1e758a0919556c2c2fdd8fd8779303113f30 (diff)
parent77b520411cafe3f32f1f52d27dd806ee6110504d (diff)
downloadsymfony-security-b33e8d2376f20761911faa654d85790d61a29019.zip
symfony-security-b33e8d2376f20761911faa654d85790d61a29019.tar.gz
symfony-security-b33e8d2376f20761911faa654d85790d61a29019.tar.bz2
merge from master
Diffstat (limited to 'Core/User/ChainUserProvider.php')
-rw-r--r--Core/User/ChainUserProvider.php15
1 files changed, 12 insertions, 3 deletions
diff --git a/Core/User/ChainUserProvider.php b/Core/User/ChainUserProvider.php
index 6417f99..e6aca32 100644
--- a/Core/User/ChainUserProvider.php
+++ b/Core/User/ChainUserProvider.php
@@ -1,5 +1,14 @@
<?php
+/*
+ * This file is part of the Symfony framework.
+ *
+ * (c) Fabien Potencier <fabien@symfony.com>
+ *
+ * This source file is subject to the MIT license that is bundled
+ * with this source code in the file LICENSE.
+ */
+
namespace Symfony\Component\Security\Core\User;
use Symfony\Component\Security\Core\Exception\UnsupportedUserException;
@@ -41,11 +50,11 @@ class ChainUserProvider implements UserProviderInterface
/**
* {@inheritDoc}
*/
- public function loadUser(UserInterface $user)
+ public function refreshUser(UserInterface $user)
{
foreach ($this->providers as $provider) {
try {
- return $provider->loadUser($user);
+ return $provider->refreshUser($user);
} catch (UnsupportedUserException $unsupported) {
// try next one
}
@@ -67,4 +76,4 @@ class ChainUserProvider implements UserProviderInterface
return false;
}
-} \ No newline at end of file
+}