Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add DI framework as dependency - Part 2 #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

CassiusPacheco
Copy link
Owner

@CassiusPacheco CassiusPacheco commented Mar 17, 2020

Use the DependencyContainer framework to inject containers in the routers which will be responsible for instantiating the whole flow of the app.

The Graph's container should register and resolve all dependencies of the app. In order to do it the container must be passed down to every Router.

No other classes besides Routers should have access to it. Routers are the only responsible for instantiating new screens and they are in charge of injecting all necessary dependencies into them.

This is pull request is related to the second part of a series of blog posts about Clean, Simple and Composable Routing for iOS Apps.

Use the DependencyContainer framework to inject containers in the 
routers which will be responsible for instantiating the whole flow of 
the app.

The Graph's container should register and resolve all dependencies of 
the app. In order to do it the container must be passed down to every 
Router.

No other classes besides Routers should have access to it. Routers are 
the only responsible for instantiating new screens and they are 
in charge of injecting all necessary dependencies into them.
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