Pico 程序员首先依靠构造函数进行注入。
Pico programmers rely first on constructors to do injection.
DI使您能够将对象注入到类中,而不是依靠类来创建对象本身。
DI enables you to inject objects into a class, instead of relying on the class to create the object itself.
依赖注入系统依靠提供商来创建依赖的实例。
A provider creates a new instance of a dependency for the dependency injection system.
应用推荐