PHP Class Networking\InitCmsBundle\EventListener\UserActivityListener

Author: Yorkie Chadwick ([email protected])
Datei anzeigen Open project: networking/init-cms-bundle

Protected Properties

Property Type Description
$em Doctrine\Common\Persistence\ObjectManager
$tokenStorage Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage

Public Methods

Method Description
__construct ( Doctrine\Common\Persistence\ObjectManager $em )
onCoreController ( FilterControllerEvent $event ) : void On each request we want to update the user's last activity datetime
setTokenStorage ( Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage $tokenStorage )

Method Details

__construct() public method

public __construct ( Doctrine\Common\Persistence\ObjectManager $em )
$em Doctrine\Common\Persistence\ObjectManager

onCoreController() public method

On each request we want to update the user's last activity datetime
public onCoreController ( FilterControllerEvent $event ) : void
$event Symfony\Component\HttpKernel\Event\FilterControllerEvent
return void

setTokenStorage() public method

public setTokenStorage ( Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage $tokenStorage )
$tokenStorage Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage

Property Details

$em protected_oe property

protected ObjectManager,Doctrine\Common\Persistence $em
return Doctrine\Common\Persistence\ObjectManager

$tokenStorage protected_oe property

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