コード例 #1
0
 /**
  * Handle the command.
  *
  * @param $command
  */
 public function handle($command)
 {
     $user = User::add($command->firstName, $command->lastName, $command->email, $command->password);
     $this->userRepository->save($user);
     $this->dispatcher->dispatch($user->releaseEvents());
 }