Skip to content

undefined method named "addAnnotatedClassesToCompile" #13603

Closed
@elfin-sbreuers

Description

@elfin-sbreuers

Hey there,

following the documentation on https://symfony.com/doc/4.4/bundles/extension.html, I wanted to use the method addAnnotatedClassesToCompile.

Then debugging the config with ./bin/console debug:config delivers the following error:

PHP Fatal error:  Uncaught Symfony\Component\Debug\Exception\UndefinedMethodException: Attempted to call an undefined method named "addAnnotatedClassesToCompile" of class ...

Doing a grep search shows that the method is defined in symfony/http-kernel/DependencyInjection/Extension.php not in symfony/dependency-injection/Extension/Extension.php, that is used in the documentation.

Cheers,

Sebastian

Metadata

Metadata

Assignees

No one assigned

    Labels

    hasPRA Pull Request has already been submitted for this issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions