PHP Class Contao\CoreBundle\Security\User\ContaoUserProvider

Inheritance: implements Symfony\Component\Security\Core\User\UserProviderInterface, use trait Contao\CoreBundle\Framework\ScopeAwareTrait
Datei anzeigen Open project: contao/core-bundle Class Usage Examples

Public Methods

Method Description
__construct ( Contao\CoreBundle\Framework\ContaoFrameworkInterface $framework ) Constructor.
loadUserByUsername ( $username ) : BackendUser | FrontendUser
refreshUser ( Symfony\Component\Security\Core\User\UserInterface $user )
supportsClass ( $class )

Private Methods

Method Description
isBackendUsername ( string $username ) : boolean Checks if the given username can be mapped to a back end user.
isFrontendUsername ( string $username ) : boolean Checks if the given username can be mapped to a front end user.

Method Details

__construct() public method

Constructor.
public __construct ( Contao\CoreBundle\Framework\ContaoFrameworkInterface $framework )
$framework Contao\CoreBundle\Framework\ContaoFrameworkInterface

loadUserByUsername() public method

public loadUserByUsername ( $username ) : BackendUser | FrontendUser
return Contao\BackendUser | Contao\FrontendUser

refreshUser() public method

public refreshUser ( Symfony\Component\Security\Core\User\UserInterface $user )
$user Symfony\Component\Security\Core\User\UserInterface

supportsClass() public method

public supportsClass ( $class )