Skip to content

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