public function handle(CreateUserCommand $command) { $user = UserDTOBuilder::createFromDTO($command->getUserId(), $command->getUserDTO()); $this->userService->create($user); }
public function getUserDTOWithRolesAndTokens() { return $this->userDTOBuilder->withRoles()->withTokens()->build(); }