DOCS
Documentation
Guides that take you from an empty project to a booted service container, plus the notes for moving between major versions.
Guides
Quickstart Add the packages, generate the service container plugin and boot your first container. Read guide → Configure your project How the code generator, the generated plugin and the service container fit together. Read guide → Your first service Register a class as a service and resolve it from the container. Read guide → Service lifetime The singleton and transient lifetimes, and when to reach for each. Read guide → Exposing services for abstractions Register an implementation under the interface it implements. Read guide → Preloading services Instantiate a singleton eagerly, right after the container boots. Read guide → Parameters Resolve constructor arguments from the container parameters map. Read guide → Service maps Register services that live in a third party package you cannot annotate. Read guide → Service registration at runtime Register a service with a factory while the app is running. Read guide → Sub containers with additional services Scope services and parameters to a single derived container with enhance. Read guide → Tagged services Group services under a symbol and resolve them all at once. Read guide →
Upgrading
Upgrade from v2 to v3 Build configuration and generator annotation changes for v3. Read guide → Upgrade from v3 to v4 Removed annotations, the new cache directory and build configuration for v4. Read guide → Upgrade from v4 to v5 The move to the plugin based architecture, contracts package and pub workspaces. Read guide → Upgrade from v5 to v6 Dependency-only update; no code changes required. Read guide →