| @@ 83-106 (lines=24) @@ | ||
| 80 | * |
|
| 81 | * @throws \Assert\AssertionFailedException |
|
| 82 | */ |
|
| 83 | public function __construct( |
|
| 84 | Mailer $mailer, |
|
| 85 | Sender $sender, |
|
| 86 | TranslatorInterface $translator, |
|
| 87 | EngineInterface $templateEngine, |
|
| 88 | $emailVerificationUrlTemplate, |
|
| 89 | EmailTemplateService $emailTemplateService, |
|
| 90 | $fallbackLocale, |
|
| 91 | $selfServiceUrl |
|
| 92 | ) { |
|
| 93 | Assertion::string( |
|
| 94 | $emailVerificationUrlTemplate, |
|
| 95 | 'Email verification URL template "%s" expected to be string, type %s given' |
|
| 96 | ); |
|
| 97 | ||
| 98 | $this->mailer = $mailer; |
|
| 99 | $this->sender = $sender; |
|
| 100 | $this->translator = $translator; |
|
| 101 | $this->templateEngine = $templateEngine; |
|
| 102 | $this->emailVerificationUrlTemplate = $emailVerificationUrlTemplate; |
|
| 103 | $this->emailTemplateService = $emailTemplateService; |
|
| 104 | $this->fallbackLocale = $fallbackLocale; |
|
| 105 | $this->selfServiceUrl = $selfServiceUrl; |
|
| 106 | } |
|
| 107 | ||
| 108 | /** |
|
| 109 | * @param string $locale |
|
| @@ 80-98 (lines=19) @@ | ||
| 77 | * |
|
| 78 | * @throws \Assert\AssertionFailedException |
|
| 79 | */ |
|
| 80 | public function __construct( |
|
| 81 | Mailer $mailer, |
|
| 82 | Sender $sender, |
|
| 83 | TranslatorInterface $translator, |
|
| 84 | EngineInterface $templateEngine, |
|
| 85 | EmailTemplateService $emailTemplateService, |
|
| 86 | $fallbackLocale, |
|
| 87 | $selfServiceUrl |
|
| 88 | ) { |
|
| 89 | Assertion::string($fallbackLocale, 'Fallback locale "%s" expected to be string, type %s given'); |
|
| 90 | ||
| 91 | $this->mailer = $mailer; |
|
| 92 | $this->sender = $sender; |
|
| 93 | $this->translator = $translator; |
|
| 94 | $this->templateEngine = $templateEngine; |
|
| 95 | $this->emailTemplateService = $emailTemplateService; |
|
| 96 | $this->fallbackLocale = $fallbackLocale; |
|
| 97 | $this->selfServiceUrl = $selfServiceUrl; |
|
| 98 | } |
|
| 99 | ||
| 100 | /** |
|
| 101 | * @param string $locale |
|
| @@ 85-104 (lines=20) @@ | ||
| 82 | * |
|
| 83 | * @throws \Assert\AssertionFailedException |
|
| 84 | */ |
|
| 85 | public function __construct( |
|
| 86 | Mailer $mailer, |
|
| 87 | Sender $sender, |
|
| 88 | TranslatorInterface $translator, |
|
| 89 | EngineInterface $templateEngine, |
|
| 90 | EmailTemplateService $emailTemplateService, |
|
| 91 | $fallbackLocale, |
|
| 92 | $selfServiceUrl |
|
| 93 | ) { |
|
| 94 | Assertion::string($fallbackLocale, 'Fallback locale "%s" expected to be string, type %s given'); |
|
| 95 | Assertion::string($selfServiceUrl, 'Self Service URL "%s" expected to be string, type %s given'); |
|
| 96 | ||
| 97 | $this->mailer = $mailer; |
|
| 98 | $this->sender = $sender; |
|
| 99 | $this->translator = $translator; |
|
| 100 | $this->templateEngine = $templateEngine; |
|
| 101 | $this->emailTemplateService = $emailTemplateService; |
|
| 102 | $this->fallbackLocale = $fallbackLocale; |
|
| 103 | $this->selfServiceUrl = $selfServiceUrl; |
|
| 104 | } |
|
| 105 | ||
| 106 | /** |
|
| 107 | * @param Locale $locale |
|
| @@ 79-97 (lines=19) @@ | ||
| 76 | * @param string $selfServiceUrl |
|
| 77 | * @throws \Assert\AssertionFailedException |
|
| 78 | */ |
|
| 79 | public function __construct( |
|
| 80 | Mailer $mailer, |
|
| 81 | Sender $sender, |
|
| 82 | TranslatorInterface $translator, |
|
| 83 | EngineInterface $templateEngine, |
|
| 84 | EmailTemplateService $emailTemplateService, |
|
| 85 | $fallbackLocale, |
|
| 86 | $selfServiceUrl |
|
| 87 | ) { |
|
| 88 | Assertion::string($fallbackLocale, 'Fallback locale "%s" expected to be string, type %s given'); |
|
| 89 | ||
| 90 | $this->mailer = $mailer; |
|
| 91 | $this->sender = $sender; |
|
| 92 | $this->translator = $translator; |
|
| 93 | $this->templateEngine = $templateEngine; |
|
| 94 | $this->emailTemplateService = $emailTemplateService; |
|
| 95 | $this->fallbackLocale = $fallbackLocale; |
|
| 96 | $this->selfServiceUrl = $selfServiceUrl; |
|
| 97 | } |
|
| 98 | ||
| 99 | /** |
|
| 100 | * @param Locale $locale |
|