7
7
class <?= $ class_name ; ?> extends <?= $ parent_class_name ; ?> <?= "\n" ?>
8
8
{
9
9
<?php if ($ will_verify_email ): ?>
10
- private $emailVerifier;
10
+ <?= $ email_verifier_details -> getPropertyStatement () ?>
11
11
12
- public function __construct(EmailVerifier $emailVerifier )
12
+ public function __construct(<?= $ email_verifier_details -> getMethodArgument () ?> )
13
13
{
14
- $this->emailVerifier = $emailVerifier;
14
+ <?= $ email_verifier_details -> getConstructorArgument ( true , false ) ?>
15
15
}
16
16
17
17
<?php endif ; ?>
@@ -37,7 +37,7 @@ public function register(Request $request, UserPasswordEncoderInterface $passwor
37
37
<?php if ($ will_verify_email ): ?>
38
38
39
39
// generate a signed url and email it to the user
40
- $this->emailVerifier ->sendEmailConfirmation('app_verify_email', $user,
40
+ <?= $ email_verifier_details -> getProperty () ?> ->sendEmailConfirmation('app_verify_email', $user,
41
41
(new TemplatedEmail())
42
42
->from(new Address('<?= $ from_email ?> ', '<?= $ from_email_name ?> '))
43
43
->to($user-><?= $ email_getter ?> ())
@@ -92,7 +92,7 @@ public function verifyUserEmail(Request $request<?= $verify_email_anonymously ?
92
92
93
93
// validate email confirmation link, sets User::isVerified=true and persists
94
94
try {
95
- $this->emailVerifier ->handleEmailConfirmation($request, <?= $ verify_email_anonymously ? '$user ' : '$this->getUser() ' ?> );
95
+ <?= $ email_verifier_details -> getProperty () ?> ->handleEmailConfirmation($request, <?= $ verify_email_anonymously ? '$user ' : '$this->getUser() ' ?> );
96
96
} catch (VerifyEmailExceptionInterface $exception) {
97
97
$this->addFlash('verify_email_error', $exception->getReason());
98
98
0 commit comments