PHP Trait Contao\CoreBundle\EventListener\UserAwareTrait

Deprecation: Deprecated since Contao 4.3, to be removed in Contao 5.0
Show file Open project: contao/core-bundle

Protected Properties

Property Type Description
$tokenStorage Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface

Public Methods

Method Description
setTokenStorage ( Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface $tokenStorage ) Sets the token storage object.

Protected Methods

Method Description
hasUser ( ) : boolean Checks if there is an authenticated user.

Method Details

hasUser() protected method

Checks if there is an authenticated user.
protected hasUser ( ) : boolean
return boolean

setTokenStorage() public method

Sets the token storage object.
public setTokenStorage ( Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface $tokenStorage )
$tokenStorage Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface

Property Details

$tokenStorage protected property

protected TokenStorageInterface,Symfony\Component\Security\Core\Authentication\Token\Storage $tokenStorage
return Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface