/** * [Handle the command] * @param [type] $command [description] * @return [type] [description] */ public function handle($command) { $user = UserInfo::register($command->firstname, $command->lastname, $command->gender, $command->user_id, $command->image_url); $this->repository->save($user); return $user; }