Skip to content

[RFC] Link missing service dependencies with tailored error messages #27004

@ro0NL

Description

@ro0NL
Q A
Bug report? no
Feature request? yes
BC Break report? no
RFC? yes
Symfony version 4.x

Looking at https://github.com/symfony/symfony/pull/26864/files#diff-d7abf441ff735df5b2a9453f39ce13d2R214 i was wondering if we can solve this at the DI level, to keep the wiring concise and avoid per-case extra checks.

We did something like that recently for invalid twig functions due to missing deps i believe.

The idea is to link a tailored error message, i.e. one that hints a composer package, when some service is missing.

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    DependencyInjectionRFCRFC = Request For Comments (proposals about features that you want to be discussed)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions