Last active
July 28, 2021 16:35
-
-
Save dgafka/50744220503643f9a2b47d58082cea3b 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 PersonController | |
{ | |
public function __construct(private CommandBus $commandBus) {} | |
public function changeEmailAddress(Request $request) | |
{ | |
$userId = $request->get('userId'); | |
$email = $request->get('email'); | |
$this->commandBus->send(new ChangeEmailAddress($userId, $email)); | |
return new Response(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment