DIPart
public protocol DIPart: class
Class to maintain code hierarchy. It’s necessary for it to be convenient to combine some parts of the system into one common class, and in future to include the part, rather than some list components.
-
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.