这就是依赖注入容器责无旁贷的,它是一个智能的对象工厂。
That’s where the Dependency Injection container comes in. It is a smart object factory.
不论使用哪个容器,现在已经设置了注入的依赖项。
In either case, you have now set up your dependencies for injection.
通过依赖注入,轻量级容器减少了组件间的依赖性。
Through dependency injection, lightweight containers reduce dependencies between components.
应用推荐