RecoveryService
this is a concrete TYPO3 implementation and solely used for EXT:felogin and not part of TYPO3's Core API.
Table of Contents
Properties
- $eventDispatcher : EventDispatcherInterface
- $mailer : MailerInterface
- $recoveryConfiguration : RecoveryConfiguration
- $settings : array<string|int, mixed>
- $uriBuilder : UriBuilder
Methods
- __construct() : mixed
- sendRecoveryEmail() : void
- Sends an email with an absolute link including the given forgot hash to the passed user with instructions to recover the account.
- getEmailSubject() : string
- getReceiverName() : string
- Get display name from values. Fallback to username if none of the "_name" fields is set.
- prepareMail() : FluidEmail
- Create email object from configuration.
Properties
$eventDispatcher
protected
EventDispatcherInterface
$eventDispatcher
$mailer read-only
protected
MailerInterface
$mailer
$recoveryConfiguration
protected
RecoveryConfiguration
$recoveryConfiguration
$settings
protected
array<string|int, mixed>
$settings
$uriBuilder
protected
UriBuilder
$uriBuilder
Methods
__construct()
public
__construct(MailerInterface $mailer, EventDispatcherInterface $eventDispatcher, ConfigurationManagerInterface $configurationManager, RecoveryConfiguration $recoveryConfiguration, UriBuilder $uriBuilder) : mixed
Parameters
- $mailer : MailerInterface
- $eventDispatcher : EventDispatcherInterface
- $configurationManager : ConfigurationManagerInterface
- $recoveryConfiguration : RecoveryConfiguration
- $uriBuilder : UriBuilder
sendRecoveryEmail()
Sends an email with an absolute link including the given forgot hash to the passed user with instructions to recover the account.
public
sendRecoveryEmail(RequestInterface $request, array<string|int, mixed> $userData, string $hash) : void
Parameters
- $request : RequestInterface
- $userData : array<string|int, mixed>
- $hash : string
Tags
getEmailSubject()
protected
getEmailSubject() : string
Return values
stringgetReceiverName()
Get display name from values. Fallback to username if none of the "_name" fields is set.
protected
getReceiverName(array<string|int, mixed> $userInformation) : string
Parameters
- $userInformation : array<string|int, mixed>
Return values
stringprepareMail()
Create email object from configuration.
protected
prepareMail(RequestInterface $request, Address $receiver, string $hash, array<string|int, mixed> $userData) : FluidEmail
Parameters
- $request : RequestInterface
- $receiver : Address
- $hash : string
- $userData : array<string|int, mixed>