Last active
April 5, 2021 16:23
-
-
Save genkovich/450cbe3d99b2e538331c58f357484b32 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class EmailConfirmation | |
{ | |
public function __construct( | |
UserRepositoryInterface $userRepository, | |
TokenGeneraotorInterface $tokenGenerator, | |
MailerInterface $mailer | |
) | |
{ | |
$this->userRepository = $userRepository; | |
$this->tokenGenerator = $tokenGenerator; | |
$this->mailer = $mailer; | |
} | |
public function execute(EmailConfirmCommand $confirmCommand) // DTO | |
{ | |
// some logic | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment