Dip v3.0.0 Release Notes
-
- ➕ Added support for factories with up to six runtime arguments.
#8, @ilyapuchka - Parameter
tag
is now named in all register/resolve methods. - Playground added to project.
#10, @ilyapuchka
### Note on migration from 2.0.0 to 3.0.0:
If you used tags to register and resolve your components you have to add
tag
name for tag parameter. Don't forget to add it both inregister
andresolve
methods. If you forget to add it inresolve
call then tag value will be treated as first runtime argument for a factory, but there is no such factory registerd, so resolve will fail.Example:
This code:
container.register(tag: "some tag") { SomeClass() as SomeProtocol } container.resolve("some tag") as SomeProtocol
becomes this:
container.register(tag: "some tag") { SomeClass() as SomeProtocol } container.resolve(tag: "some tag") as SomeProtocol
- ➕ Added support for factories with up to six runtime arguments.