Class

eZ\Publish\Core\MVC\Symfony\Security\UserWrapped

class UserWrapped implements UserInterface, EquatableInterface

This class represents a UserWrapped object.

It's used when working with multiple user providers

It has two properties: - wrappedUser: containing the originally matched user. - apiUser: containing the API User (the one from the eZ Repository )

Methods

__construct(UserInterface $wrappedUser, User $apiUser)

__toString()

isAccountNonExpired()

isAccountNonLocked()

isCredentialsNonExpired()

isEnabled()

setAPIUser(User $apiUser)

User getAPIUser()

setWrappedUser(UserInterface $wrappedUser)

UserInterface getWrappedUser()

getRoles()

getPassword()

getSalt()

getUsername()

eraseCredentials()

isEqualTo(UserInterface $user)

Details

at line 38
public __construct(UserInterface $wrappedUser, User $apiUser)

Parameters

UserInterface $wrappedUser
User $apiUser

at line 44
public __toString()

at line 49
public isAccountNonExpired()

at line 54
public isAccountNonLocked()

at line 59
public isCredentialsNonExpired()

at line 64
public isEnabled()

at line 72
public setAPIUser(User $apiUser)

Parameters

User $apiUser

at line 80
public User getAPIUser()

Return Value

User

at line 90
public setWrappedUser(UserInterface $wrappedUser)

Parameters

UserInterface $wrappedUser

Exceptions

InvalidArgumentException If $wrappedUser is instance of self or User to avoid duplicated APIUser in session.

at line 104
public UserInterface getWrappedUser()

Return Value

UserInterface

at line 109
public getRoles()

at line 114
public getPassword()

at line 119
public getSalt()

at line 124
public getUsername()

at line 129
public eraseCredentials()

at line 134
public isEqualTo(UserInterface $user)

Parameters

UserInterface $user