Skip to content

[NFR]: Phalcon\Container\Container Parameter Binding #17363

Description

@niden

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

  1. self-assigned this
    on Jul 15, 2026
  2. moved this to Active Sprint in Phalcon v5on Jul 15, 2026
  3. added
    new feature request
    5.0
    on Jul 15, 2026
  4. added theissue type on Jul 15, 2026
  5. added and removed
    5.0
    on Jul 16, 2026
  6. added this to Phalcon v7 and removed this from Phalcon v5on Jul 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

7.0new feature request

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions