DOKUMENTATION
Dokumentation
Anleitungen, die dich von einem leeren Projekt zu einem gestarteten Service-Container führen – plus die Hinweise für den Umzug zwischen den Major-Versionen.
Anleitungen
Quickstart Add the packages, generate the service container plugin and boot your first container. Anleitung lesen → Configure your project How the code generator, the generated plugin and the service container fit together. Anleitung lesen → Your first service Register a class as a service and resolve it from the container. Anleitung lesen → Service lifetime The singleton and transient lifetimes, and when to reach for each. Anleitung lesen → Exposing services for abstractions Register an implementation under the interface it implements. Anleitung lesen → Preloading services Instantiate a singleton eagerly, right after the container boots. Anleitung lesen → Parameters Resolve constructor arguments from the container parameters map. Anleitung lesen → Service maps Register services that live in a third party package you cannot annotate. Anleitung lesen → Service registration at runtime Register a service with a factory while the app is running. Anleitung lesen → Sub containers with additional services Scope services and parameters to a single derived container with enhance. Anleitung lesen → Tagged services Group services under a symbol and resolve them all at once. Anleitung lesen →
Upgrades
Upgrade from v2 to v3 Build configuration and generator annotation changes for v3. Anleitung lesen → Upgrade from v3 to v4 Removed annotations, the new cache directory and build configuration for v4. Anleitung lesen → Upgrade from v4 to v5 The move to the plugin based architecture, contracts package and pub workspaces. Anleitung lesen → Upgrade from v5 to v6 Dependency-only update; no code changes required. Anleitung lesen →