class UserRequestSubscriber implements EventSubscriberInterface (View source)

Updates the current user's last access time.

Properties

protected AccountInterface $account

The current account.

protected EntityTypeManagerInterface $entityTypeManager

The entity type manager service.

Methods

__construct(AccountInterface $account, EntityTypeManagerInterface $entity_type_manager)

Constructs a new UserRequestSubscriber.

onKernelTerminate(TerminateEvent $event)

Updates the current user's last access time.

static 
getSubscribedEvents()

{@inheritdoc}

Details

__construct(AccountInterface $account, EntityTypeManagerInterface $entity_type_manager)

Constructs a new UserRequestSubscriber.

Parameters

AccountInterface $account

The current user.

EntityTypeManagerInterface $entity_type_manager

The entity type manager service.

onKernelTerminate(TerminateEvent $event)

Updates the current user's last access time.

Parameters

TerminateEvent $event

The event to process.

static getSubscribedEvents()

{@inheritdoc}