You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Goal: Give the DI container a clean, one-call way to register a class together with explicit values for its scalar/non-resolvable constructor parameters, so autowiring can build classes whose constructors take values (true/false/string/int) and not just type-hinted dependencies.
Architecture: The resolver already supports per-parameter overrides - ServiceDefinition::setArgument() stores them and freeze() feeds them to Resolver::resolveParameters(), which matches by name or position and applies them ahead of type-autowiring and defaults. This feature is therefore a thin ergonomic layer on top of existing plumbing: a bulk setter, a single define()-style convenience method on the container, a more actionable failure message, and a documented decision on the application-level facade. No change to the resolution algorithm itself.
Activity