Skip to content

Commit d484733

Browse files
authored
Use constructor property promotion in events.md
1 parent 99b45c9 commit d484733

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Diff for: core/events.md

+1-4
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,8 @@ use Symfony\Component\Mailer\MailerInterface;
103103

104104
final class BookMailSubscriber implements EventSubscriberInterface
105105
{
106-
private $mailer;
107-
108-
public function __construct(MailerInterface $mailer)
106+
public function __construct(private MailerInterface $mailer)
109107
{
110-
$this->mailer = $mailer;
111108
}
112109

113110
public static function getSubscribedEvents()

0 commit comments

Comments
 (0)