Now library has 5/7 scopes: single, perRun(weak/strong), perContainer(weak/strong), objectGraph, prototype. But if need clean scope data, user can't do that.
Need user scopes:
extension DILifetime
{
static let userScope = DIScope(.weak()/.strong(), name: "your scope") // Or your can inheritance
}
and remake current storage implementation. Weak/Strong - it's not enum, it's storage rule.
Now library has 5/7 scopes: single, perRun(weak/strong), perContainer(weak/strong), objectGraph, prototype. But if need clean scope data, user can't do that. Need user scopes:
and remake current storage implementation. Weak/Strong - it's not enum, it's storage rule.
Scope has method: