@@ 66-87 (lines=22) @@ | ||
63 | */ |
|
64 | private $templateEngine; |
|
65 | ||
66 | public function __construct( |
|
67 | Mailer $mailer, |
|
68 | Sender $sender, |
|
69 | TranslatorInterface $translator, |
|
70 | EngineInterface $templateEngine, |
|
71 | $emailVerificationUrlTemplate, |
|
72 | EmailTemplateService $emailTemplateService, |
|
73 | $fallbackLocale |
|
74 | ) { |
|
75 | Assertion::string( |
|
76 | $emailVerificationUrlTemplate, |
|
77 | 'Email verification URL template "%s" expected to be string, type %s given' |
|
78 | ); |
|
79 | ||
80 | $this->mailer = $mailer; |
|
81 | $this->sender = $sender; |
|
82 | $this->translator = $translator; |
|
83 | $this->templateEngine = $templateEngine; |
|
84 | $this->emailVerificationUrlTemplate = $emailVerificationUrlTemplate; |
|
85 | $this->emailTemplateService = $emailTemplateService; |
|
86 | $this->fallbackLocale = $fallbackLocale; |
|
87 | } |
|
88 | ||
89 | /** |
|
90 | * @param string $locale |
@@ 71-87 (lines=17) @@ | ||
68 | * @param EmailTemplateService $emailTemplateService |
|
69 | * @param string $fallbackLocale |
|
70 | */ |
|
71 | public function __construct( |
|
72 | Mailer $mailer, |
|
73 | Sender $sender, |
|
74 | TranslatorInterface $translator, |
|
75 | EngineInterface $templateEngine, |
|
76 | EmailTemplateService $emailTemplateService, |
|
77 | $fallbackLocale |
|
78 | ) { |
|
79 | Assertion::string($fallbackLocale, 'Fallback locale "%s" expected to be string, type %s given'); |
|
80 | ||
81 | $this->mailer = $mailer; |
|
82 | $this->sender = $sender; |
|
83 | $this->translator = $translator; |
|
84 | $this->templateEngine = $templateEngine; |
|
85 | $this->emailTemplateService = $emailTemplateService; |
|
86 | $this->fallbackLocale = $fallbackLocale; |
|
87 | } |
|
88 | ||
89 | /** |
|
90 | * @param string $locale |
@@ 83-102 (lines=20) @@ | ||
80 | * @param string $fallbackLocale |
|
81 | * @param string $selfServiceUrl |
|
82 | */ |
|
83 | public function __construct( |
|
84 | Mailer $mailer, |
|
85 | Sender $sender, |
|
86 | TranslatorInterface $translator, |
|
87 | EngineInterface $templateEngine, |
|
88 | EmailTemplateService $emailTemplateService, |
|
89 | $fallbackLocale, |
|
90 | $selfServiceUrl |
|
91 | ) { |
|
92 | Assertion::string($fallbackLocale, 'Fallback locale "%s" expected to be string, type %s given'); |
|
93 | Assertion::string($selfServiceUrl, 'Self Service URL "%s" expected to be string, type %s given'); |
|
94 | ||
95 | $this->mailer = $mailer; |
|
96 | $this->sender = $sender; |
|
97 | $this->translator = $translator; |
|
98 | $this->templateEngine = $templateEngine; |
|
99 | $this->emailTemplateService = $emailTemplateService; |
|
100 | $this->fallbackLocale = $fallbackLocale; |
|
101 | $this->selfServiceUrl = $selfServiceUrl; |
|
102 | } |
|
103 | ||
104 | /** |
|
105 | * @param Locale $locale |
@@ 73-89 (lines=17) @@ | ||
70 | * @param EmailTemplateService $emailTemplateService |
|
71 | * @param string $fallbackLocale |
|
72 | */ |
|
73 | public function __construct( |
|
74 | Mailer $mailer, |
|
75 | Sender $sender, |
|
76 | TranslatorInterface $translator, |
|
77 | EngineInterface $templateEngine, |
|
78 | EmailTemplateService $emailTemplateService, |
|
79 | $fallbackLocale |
|
80 | ) { |
|
81 | Assertion::string($fallbackLocale, 'Fallback locale "%s" expected to be string, type %s given'); |
|
82 | ||
83 | $this->mailer = $mailer; |
|
84 | $this->sender = $sender; |
|
85 | $this->translator = $translator; |
|
86 | $this->templateEngine = $templateEngine; |
|
87 | $this->emailTemplateService = $emailTemplateService; |
|
88 | $this->fallbackLocale = $fallbackLocale; |
|
89 | } |
|
90 | ||
91 | ||
92 |