Skip to content

[Dependency Injection] AutowirePass depends on symfony/config #48905

Closed
@mondrake

Description

@mondrake

Symfony version(s) affected

6.2.2

Description

This line of code in AutowirePass

https://github.com/symfony/symfony/blob/6.3/src/Symfony/Component/DependencyInjection/Compiler/AutowirePass.php#L14

makes so that in case a service cannot be determine in autowiring, a fatal error is thrown for missing class.

True it's a fatal anyway, but if symfony/config is installed, the error description is much more accurate.

See https://www.drupal.org/project/drupal/issues/3331324.

How to reproduce

See https://www.drupal.org/project/drupal/issues/3331324

Possible Solution

Make symfony/config a dependency in composer.json?

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions