src/Eccube/Repository/CustomerRepository.php 1 location
|
@@ 121-128 (lines=8) @@
|
118 |
|
* |
119 |
|
* @throws UnsupportedUserException if the account is not supported |
120 |
|
*/ |
121 |
|
public function refreshUser(UserInterface $user) |
122 |
|
{ |
123 |
|
if (!$user instanceof Customer) { |
124 |
|
throw new UnsupportedUserException(sprintf('Instances of "%s" are not supported.', get_class($user))); |
125 |
|
} |
126 |
|
|
127 |
|
return $this->loadUserByUsername($user->getUsername()); |
128 |
|
} |
129 |
|
|
130 |
|
/** |
131 |
|
* Whether this provider supports the given user class. |
src/Eccube/Repository/MemberRepository.php 1 location
|
@@ 109-116 (lines=8) @@
|
106 |
|
* |
107 |
|
* @throws UnsupportedUserException if the account is not supported |
108 |
|
*/ |
109 |
|
public function refreshUser(UserInterface $user) |
110 |
|
{ |
111 |
|
if (!$user instanceof Member) { |
112 |
|
throw new UnsupportedUserException(sprintf('Instances of "%s" are not supported.', get_class($user))); |
113 |
|
} |
114 |
|
|
115 |
|
return $this->loadUserByUsername($user->getUsername()); |
116 |
|
} |
117 |
|
|
118 |
|
/** |
119 |
|
* Whether this provider supports the given user class. |