public function __construct(UserRepository $repository, UserValidator $validator) { $this->repository = $repository; $this->validator = $validator; }