DOCUMENTACIÓN
Documentación
Guías que te llevan de un proyecto vacío a un contenedor de servicios en marcha, además de las notas para pasar entre versiones mayores.
Guías
Quickstart Add the packages, generate the service container plugin and boot your first container. Leer la guía → Configure your project How the code generator, the generated plugin and the service container fit together. Leer la guía → Your first service Register a class as a service and resolve it from the container. Leer la guía → Service lifetime The singleton and transient lifetimes, and when to reach for each. Leer la guía → Exposing services for abstractions Register an implementation under the interface it implements. Leer la guía → Preloading services Instantiate a singleton eagerly, right after the container boots. Leer la guía → Parameters Resolve constructor arguments from the container parameters map. Leer la guía → Service maps Register services that live in a third party package you cannot annotate. Leer la guía → Service registration at runtime Register a service with a factory while the app is running. Leer la guía → Sub containers with additional services Scope services and parameters to a single derived container with enhance. Leer la guía → Tagged services Group services under a symbol and resolve them all at once. Leer la guía →
Actualizaciones
Upgrade from v2 to v3 Build configuration and generator annotation changes for v3. Leer la guía → Upgrade from v3 to v4 Removed annotations, the new cache directory and build configuration for v4. Leer la guía → Upgrade from v4 to v5 The move to the plugin based architecture, contracts package and pub workspaces. Leer la guía → Upgrade from v5 to v6 Dependency-only update; no code changes required. Leer la guía →