Use Events to extend femanager

Introduction

Events can be used for developers to extend femanager processes with their own code. Previously, signals or hooks had been used for this purpose. But since TYPO3 v10 PSR-14 Events should be used for signalling.

Please refer to the official TYPO3 documentation for an explanation of EventDispatcher (PSR-14 Events)

https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/ApiOverview/Events/EventDispatcher/Index.html

This blog article describes how to use PSR-14 Events in TYPO3.

https://usetypo3.com/psr-14-events.html

Events List

AdminConfirmationUserEvent

UserBackendController->confirmUserAction()

confirmUserAction

$user

Use this event if you would like to trigger an action after a user confirmation has been initiated by an admin in the backend

AfterMailSendEvent

SendMailService->send()

AfterSend

$email, $variables

Use this event if you would like to trigger an action after an email has been sent

AfterUserUpdateEvent

EditController->confirmUpdateRequestAction()

confirmUpdateRequestActionAfterPersist

$user, $hash, $status

Use this event if you would like to trigger an action after a changed user profile has been persisted

BeforeMailSendEvent

SendMailService->send()

BeforeSend

$email, $variables

Use this event if you would like to trigger an action before an email is sent

BeforeUpdateUserEvent

EditController->updateAction()

updateActionBeforePersist

$user

Use this event if you would like to trigger an action before changes to a user profile are persisted

BeforeUserConfirmEvent

NewController->confirmCreateRequestAction()

??

$user, $hash, $status

Use this event if you would like to trigger an action after a new user has registered but not confirmed his account

BeforeUserCreateEvent

NewController->createAction()

createActionBeforePersist

$user

Use this event if you would like to trigger an action before a newly registered user is created

CreateConfirmationRequestEvent

NewController->createAdminConfirmationRequest()

createAdminConfirmationRequestAutoConfirm createAdminConfirmationRequestManualConfirmation

$user, $mode

Use this event if you would like to trigger an action after an admin confirmation has been requested for a new user

DeleteUserEvent

EditController->deleteAction()

deleteAction

$user

Use this event if you would like to trigger an action when the deletion of a user is started

FinalCreateEvent

AbstractController->finalCreateAction()

finalCreateAfterPersist

$user, $action

Use this event if you would like to trigger an action after a new user has been created and persisted

FinalUpdateEvent

AbstractController->updateAllConfirmed()

updateAllConfirmedAfterPersist

$user

Use this event if you would like to trigger an action after changes to a user profile that do not require admin confirmation have been persisted

ImpersonateEvent

UserController->loginAsAction()

loginAsAction

$user

Use this event if you would like to trigger an action after a backend user has logged in as a fronted user

InviteUserConfirmedEvent

InvitationController->createAllConfirmed()

createAllConfirmedAfterPersist

$user

Use this event if you would like to trigger an action after a new user has been created and no more confirmations are required

InviteUserCreateEvent

InvitationController->createAction()

??

$user

Use this event if you would like to trigger an action after a new user has been created by invitation

InviteUserEditEvent

InvitationController->editAction()

editActionAfterPersist

$user, $hash

Use this event if you would like to trigger an action when a newly invited user changes his profile

InviteUserUpdateEvent

InvitationController->updateAction()

updateActionBeforePersist

$user

Use this event if you would like to trigger an action after a newly invited user has changed his profile

RefuseUserEvent

UserBackendController->refuseAction()

refuseUserAction

$user

Use this event if you would like to trigger an action when a user is refused by an admin in the backend

UniqueUserEvent

AbstractValidator->validateUniqueDb()

??

$value, $field, $user, $uniqueDb

Use this event if you would like to trigger an action if a check is made if the user is unique in the database

UserLogEvent

LogUitility->log()

??

$additionalProperties, $state, $user

Use this event if you would like to trigger an action if user changes are logged

UserWasConfirmedByAdminEvent

NewController->confirmCreateRequestAction()

??

$additionalProperties, $state, $user

Use this event if you would like to trigger an action after a new user has been confirmed by an admin in the backend

Do you need a new Event in femanager? Just request one on https://github.com/in2code-de/femanager