← Back to Upcase

Dependency Injection with Builders

(Aaron Mc Adam) #1

Hi guys

A while back I posted about how to go about refactoring a God Object.

That code needs to be merged tomorrow so I’d like to get some feedback on an attempt to extract an object and inject its dependencies. The Repository object in question is to be used for breadcrumbs, but would end up also be used by other objects in the view.

I figured I’d write a Builder to inject the dependencies of the Repository.