RecoveryService implements RecoveryServiceInterface

Internal

this is a concrete TYPO3 implementation and solely used for EXT:felogin and not part of TYPO3's Core API.

Table of Contents

Interfaces

RecoveryServiceInterface

Properties

$eventDispatcher  : EventDispatcherInterface
$mailer  : Mailer
$recoveryConfiguration  : RecoveryConfiguration
$settings  : array<string|int, mixed>
$uriBuilder  : UriBuilder
$userRepository  : FrontendUserRepository

Methods

__construct()  : mixed
sendRecoveryEmail()  : void
Sends an email with an absolute link including a forgot hash to the passed email address 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()  : Email
Create email object from configuration.

Properties

$eventDispatcher

protected EventDispatcherInterface $eventDispatcher

$settings

protected array<string|int, mixed> $settings

Methods

__construct()

public __construct(Mailer $mailer, EventDispatcherInterface $eventDispatcher, ConfigurationManager $configurationManager, RecoveryConfiguration $recoveryConfiguration, UriBuilder $uriBuilder, FrontendUserRepository $userRepository) : mixed
Parameters
$mailer : Mailer
$eventDispatcher : EventDispatcherInterface
$configurationManager : ConfigurationManager
$recoveryConfiguration : RecoveryConfiguration
$uriBuilder : UriBuilder
$userRepository : FrontendUserRepository
Tags
throws
InvalidConfigurationTypeException

sendRecoveryEmail()

Sends an email with an absolute link including a forgot hash to the passed email address with instructions to recover the account.

public sendRecoveryEmail(string $emailAddress) : void
Parameters
$emailAddress : string
Tags
throws
TransportExceptionInterface

getEmailSubject()

protected getEmailSubject() : string
Return values
string

getReceiverName()

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
string

prepareMail()

Create email object from configuration.

protected prepareMail(Address $receiver, string $hash) : Email
Parameters
$receiver : Address
$hash : string
Return values
Email

        
On this page

Search results