Skip to content

Commit

Permalink
Added promotion constructor notation
Browse files Browse the repository at this point in the history
  • Loading branch information
ViniTou committed Jul 10, 2024
1 parent 4c3e80f commit 72a140b
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions src/contracts/Notification/UserInvitation.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,12 @@

final class UserInvitation extends Notification implements EmailNotificationInterface
{
private Invitation $invitation;

private ConfigResolverInterface $configResolver;

private Environment $twig;

public function __construct(
Invitation $invitation,
ConfigResolverInterface $configResolver,
Environment $twig
private Invitation $invitation,
private ConfigResolverInterface $configResolver,
private Environment $twig
) {
parent::__construct();

$this->configResolver = $configResolver;
$this->twig = $twig;
$this->invitation = $invitation;
}

public function asEmailMessage(EmailRecipientInterface $recipient, string $transport = null): ?EmailMessage
Expand Down

0 comments on commit 72a140b

Please sign in to comment.