class SurveyMailManager extends TranslatableManager

Class SurveyMailManager is injected as alligator.survey_mail_manager service. SurveyMailManager handles the logic for managed entity.

Constants

TEMPLATE

Properties

protected SurveyMailRepository $repository
protected SendMail $mailer
protected TokenStorage $tokenStorage

Methods

setRepositoryLocale(ContainerInterface|null $container)

Sets the repository request default locale

setRepository(mixed $repository)

No description

mixed
getLanguagesForIds(array $ids)

No description

__construct(SurveyMailRepository $repository, SendMail $mailer, TokenStorage $tokenStorage)

SurveyMailManager constructor.

saveMail(SurveyMail $mail)

Save survey mail

Details

in TranslatableManager at line 30
setRepositoryLocale(ContainerInterface|null $container)

Sets the repository request default locale

Parameters

ContainerInterface|null $container

Exceptions

InvalidArgumentException if repository is not an instance of TranslatableRepository

in TranslatableManager at line 63
setRepository(mixed $repository)

Parameters

mixed $repository

in TranslatableManager at line 73
mixed getLanguagesForIds(array $ids)

Parameters

array $ids

Return Value

mixed

at line 49
__construct(SurveyMailRepository $repository, SendMail $mailer, TokenStorage $tokenStorage)

SurveyMailManager constructor.

Parameters

SurveyMailRepository $repository
SendMail $mailer
TokenStorage $tokenStorage

at line 63
SurveyMail saveMail(SurveyMail $mail)

Save survey mail

Parameters

SurveyMail $mail

Return Value

SurveyMail