Skip to content

Commit 6036523

Browse files
seb-jeanjrushlow
andauthored
Add typed properties for make:reset-password and make:registration (#1028)
Co-authored-by: Jesse Rushlow <[email protected]>
1 parent cd0d38e commit 6036523

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Resources/skeleton/resetPassword/ResetPasswordController.tpl.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ class <?= $class_name ?> extends AbstractController
1515
{
1616
use ResetPasswordControllerTrait;
1717

18-
private $resetPasswordHelper;
19-
private $entityManager;
18+
private <?= $use_typed_properties ? 'ResetPasswordHelperInterface ' : null ?>$resetPasswordHelper;
19+
private <?= $use_typed_properties ? 'EntityManagerInterface ' : null ?>$entityManager;
2020

2121
public function __construct(ResetPasswordHelperInterface $resetPasswordHelper, EntityManagerInterface $entityManager)
2222
{

src/Resources/skeleton/verifyEmail/EmailVerifier.tpl.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77
class <?= $class_name; ?><?= "\n" ?>
88
{
9-
private $verifyEmailHelper;
10-
private $mailer;
11-
private $entityManager;
9+
private <?= $use_typed_properties ? 'VerifyEmailHelperInterface ' : null ?>$verifyEmailHelper;
10+
private <?= $use_typed_properties ? 'MailerInterface ' : null ?>$mailer;
11+
private <?= $use_typed_properties ? 'EntityManagerInterface ' : null ?>$entityManager;
1212

1313
public function __construct(VerifyEmailHelperInterface $helper, MailerInterface $mailer, EntityManagerInterface $manager)
1414
{

0 commit comments

Comments
 (0)