refactor: move dependencies to controllers (#1550)

* Moves dependencies directly to controllers
* Reduces use of @cached_property - (I have a suspicion that this is a factor in memory usage)
* reduce duplicate ways to access the same property on a controller.
This commit is contained in:
Hayden
2022-08-11 20:13:22 -08:00
committed by GitHub
parent 8a98288248
commit 71d3db7aef
30 changed files with 183 additions and 215 deletions

View File

@@ -24,8 +24,8 @@ class RegistrationController(BasePublicController):
)
registration_service = RegistrationService(
self.deps.logger,
get_repositories(self.deps.session),
self.logger,
get_repositories(self.session),
self.translator,
)