コード例 #1
0
 /**
  * Handle the command.
  * @param object $command
  * @return void
  */
 public function handle($command)
 {
     $user = $this->model->login($command->email, $command->password);
     $this->dispatchEventsFor($user);
     $this->repository->login($command);
     return $user;
 }