DOCUMENTATION
Documentation
Des guides qui vous mènent d'un projet vide à un conteneur de services démarré, ainsi que les notes pour passer entre les versions majeures.
Guides
Quickstart Add the packages, generate the service container plugin and boot your first container. Lire le guide → Configure your project How the code generator, the generated plugin and the service container fit together. Lire le guide → Your first service Register a class as a service and resolve it from the container. Lire le guide → Service lifetime The singleton and transient lifetimes, and when to reach for each. Lire le guide → Exposing services for abstractions Register an implementation under the interface it implements. Lire le guide → Preloading services Instantiate a singleton eagerly, right after the container boots. Lire le guide → Parameters Resolve constructor arguments from the container parameters map. Lire le guide → Service maps Register services that live in a third party package you cannot annotate. Lire le guide → Service registration at runtime Register a service with a factory while the app is running. Lire le guide → Sub containers with additional services Scope services and parameters to a single derived container with enhance. Lire le guide → Tagged services Group services under a symbol and resolve them all at once. Lire le guide →
Mises à niveau
Upgrade from v2 to v3 Build configuration and generator annotation changes for v3. Lire le guide → Upgrade from v3 to v4 Removed annotations, the new cache directory and build configuration for v4. Lire le guide → Upgrade from v4 to v5 The move to the plugin based architecture, contracts package and pub workspaces. Lire le guide → Upgrade from v5 to v6 Dependency-only update; no code changes required. Lire le guide →