Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getEntry example
return
$this
->
loadUser
(
$identifier
,
$entry
)
;
}
public
function
refreshUser
(
UserInterface
$user
)
: UserInterface
{
if
(
!
$user
instanceof LdapUser
)
{
throw
new
UnsupportedUserException
(
sprintf
(
'Instances of "%s" are not supported.',
get_debug_type
(
$user
)
)
)
;
}
return
new
LdapUser
(
$user
->
getEntry
(
)
,
$user
->
getUserIdentifier
(
)
,
$user
->
getPassword
(
)
,
$user
->
getRoles
(
)
,
$user
->
getExtraFields
(
)
)
;
}
/** * @final */
public
function
upgradePassword
(
PasswordAuthenticatedUserInterface
$user
, string
$newHashedPassword
)
: void
{
if
(
!
$user
instanceof LdapUser
)
{
throw
new
UnsupportedUserException
(
sprintf
(
'Instances of "%s" are not supported.',
get_debug_type
(
$user
)
)
)
;
}