Skip to content

Constructor dependency injection#44

Open
FluxCapacitor2 wants to merge 6 commits intomainfrom
constructor-dependency-injection
Open

Constructor dependency injection#44
FluxCapacitor2 wants to merge 6 commits intomainfrom
constructor-dependency-injection

Conversation

@FluxCapacitor2
Copy link
Copy Markdown
Collaborator

This PR moves service functions into their own classes. Each class accepts its dependencies as constructor parameters and stores them as properties, which will make the system easier to test by providing mock dependencies that don't need to interact with external systems.

This PR does not address iffy boundaries and tight connections between services. They existed before and still do, but this PR may make them easier to see.

There should be no differences in functionality before vs. after this PR is merged. These are purely structural changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant