Skip to content

Why register annotations is required during the installation process #424

@murilolobato

Description

@murilolobato

Reading the installation instructions on symfony.com and in the own repo docs (which is referenced by the symfony webpage) it says to add the following code to app/autoload.php:

use Doctrine\ODM\MongoDB\Mapping\Driver\AnnotationDriver;
AnnotationDriver::registerAnnotationClasses();

I've just discovered that my application is running without this code about two years. Is this call still necessary? What this does?

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