Skip to content

[DI] Autowiring causes a fatal error for optional services #18188

@hason

Description

@hason

I use Symfony components and bundles without forms. Autowiring causes the fatal error for twig.form.engine service from TwigBundle:

PHP Fatal error: Class 'Symfony\Component\Form\AbstractRendererEngine' not found in ...

We should replace ReflectionClass with phpdocumentor/reflection or another library for static reflection.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions