Swinject / Swinject

Dependency injection framework for Swift with iOS/macOS/Linux
MIT License
6.3k stars 514 forks source link

reset问题 #512

Open iOSyifeng opened 2 years ago

iOSyifeng commented 2 years ago

为什么不提供个根据name reset的方法 现在只有全局reset

DhbStudy commented 1 year ago

我其实也在找你说的功能,从接口上确实可以加

目前可以: 参考:https://github.com/Swinject/Swinject/blob/master/Documentation/ObjectScopes.md 的 Custom Scopes 部分 用自定义Scope应该能实现你的需求