/** * Refreshes the user for the account interface. * * It is up to the implementation to decide if the user data should be * totally reloaded (e.g. from the database), or if the UserInterface * object can just be merged into some internal array of users / identity * map. * * @param UserInterface $user * * @return UserInterface * * @throws UnsupportedUserException if the account is not supported */ public function refreshUser(UserInterface $user) { if ($this->provider) { return $this->provider->refreshUser($user); } throw new UnsupportedUserException(); }
/** * {@inheritDoc} */ public function refreshUser(UserInterface $user) { return $this->userProvider->refreshUser($user); }
/** * Refresh user using source User Provider. * @param UserInterface $user * @return UserInterface */ public function refreshUser(UserInterface $user) { $username = $user->getUsername(); $this->cachedUsers[$username] = $this->userProvider->refreshUser($user); return $this->cachedUsers[$username]; }