Skip to content

Commit

Permalink
remove WithSignupService
Browse files Browse the repository at this point in the history
  • Loading branch information
MatousJobanek committed Jan 31, 2025
1 parent 8f9f1e1 commit 229f2f4
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions pkg/application/service/factory/service_factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,6 @@ func (s *ServiceFactory) WithVerificationServiceOption(opt verificationservice.V
s.verificationServiceOptions = append(s.verificationServiceOptions, opt)
}

func (s *ServiceFactory) WithSignupService(signupService service.SignupService) {
s.signupServiceFunc = func(_ ...signupservice.SignupServiceOption) service.SignupService {
return signupService
}
}

// Option an option to configure the Service Factory
type Option func(f *ServiceFactory)

Expand Down Expand Up @@ -99,10 +93,8 @@ func NewServiceFactory(options ...Option) *ServiceFactory {
return verificationservice.NewVerificationService(f.getContext(), f.verificationServiceOptions...)
}

if f.signupServiceFunc == nil {
f.signupServiceFunc = func(_ ...signupservice.SignupServiceOption) service.SignupService {
return signupservice.NewSignupService(f.getContext().Client(), f.signupServiceOptions...)
}
f.signupServiceFunc = func(_ ...signupservice.SignupServiceOption) service.SignupService {
return signupservice.NewSignupService(f.getContext().Client(), f.signupServiceOptions...)
}

return f
Expand Down

0 comments on commit 229f2f4

Please sign in to comment.