Skip to content

Instantly share code, notes, and snippets.

@ivangodfather
Created November 5, 2015 18:20
Show Gist options
  • Select an option

  • Save ivangodfather/80501631516704af8d44 to your computer and use it in GitHub Desktop.

Select an option

Save ivangodfather/80501631516704af8d44 to your computer and use it in GitHub Desktop.
class ServiceLocator {
static let instance = ServiceLocator()
func getPresenterForCarList(ui: CarListUI, wireframe: CarWireframe) -> CarListPresenter {
return CarListPresenter(
ui: ui,
useCase: GetCarList(
agent: CarAgent(
repository: CarRepository()
)
),
wireFrame: wireframe
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment