DIFramework
public protocol DIFramework : AnyObject
Slight expansion over part. Allows you to express more expressively the entry point to the framework of you application. It isn’t necessary to create several such classses on one framework - it willn’t be convenient.
-
Method inside of which you can registration a components. It’s worth combining the components for some reason. And call a class implementing the protocol according to this characteristics.
Declaration
Swift
static func load(container: DIContainer)
Parameters
container
A container. Don’t call the method yourself, but leave it to the method
append(...)
into container.