1 | <?php |
||
18 | class MessageAppCommandHandler implements LoggerAwareInterface |
||
19 | { |
||
20 | use LoggerAwareTrait; |
||
21 | |||
22 | /** |
||
23 | * @var ApplicationUserFactory |
||
24 | */ |
||
25 | private $userBuilder; |
||
26 | |||
27 | /** |
||
28 | * @var ApplicationUserRepository |
||
29 | */ |
||
30 | private $userManager; |
||
31 | |||
32 | /** |
||
33 | * @var ErrorEventHandler |
||
34 | */ |
||
35 | private $errorHandler; |
||
36 | |||
37 | /** |
||
38 | * Constructor |
||
39 | * |
||
40 | * @param ApplicationUserFactory $userBuilder |
||
41 | * @param ApplicationUserRepository $userManager |
||
42 | * @param ErrorEventHandler $errorHandler |
||
43 | */ |
||
44 | 9 | public function __construct( |
|
54 | |||
55 | /** |
||
56 | * Handles a CreateUserCommand |
||
57 | * |
||
58 | * @param CreateUserCommand $command |
||
59 | * @return string |
||
60 | */ |
||
61 | 6 | public function handleCreateUserCommand(CreateUserCommand $command) |
|
87 | |||
88 | /** |
||
89 | * Creates the player |
||
90 | * |
||
91 | * @param ApplicationUserId $userId |
||
92 | * @param object $originalUser |
||
93 | * @param string $language |
||
94 | * |
||
95 | * @return ApplicationUser |
||
96 | */ |
||
97 | 6 | private function createUser(ApplicationUserId $userId, $originalUser, $language) |
|
102 | } |
||
103 |