Simplifying a particular case
Add simple one modificator injection into initialize method. For example:
Old: container.register { Cat(name: arg($0), owner: $1, home: $2) }
New: container.register(Cat.init) { arg($0) }
Add simple one modificator injection into initialize method. For example:
Old: container.register { Cat(name: arg($0), owner: $1, home: $2) }
New: container.register(Cat.init) { arg($0) }