class UserRequestSubscriber implements EventSubscriberInterface (View source)

Updates the current user's last access time.

Traits

Provides a standard way to announce deprecated properties.

Properties

protected $deprecatedProperties {@inheritdoc}
protected AccountInterface $account

The current account.

protected EntityTypeManagerInterface $entityTypeManager

The entity type manager service.

Methods

__get($name)

Allows to access deprecated/removed properties.

__construct(AccountInterface $account, EntityTypeManagerInterface $entity_type_manager)

Constructs a new UserRequestSubscriber.

onKernelTerminate(PostResponseEvent $event)

Updates the current user's last access time.

static 
getSubscribedEvents()

{@inheritdoc}

Details

__get($name)

Allows to access deprecated/removed properties.

This method must be public.

Parameters

$name

__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(PostResponseEvent $event)

Updates the current user's last access time.

Parameters

PostResponseEvent $event

The event to process.

static getSubscribedEvents()

{@inheritdoc}