if you installed the library through composer, the safe way is to use ``AnnotationRegistry::registerloader(require __DIR__.'/vendor/autoload.php');`` to register the composer class loader (the path may need to be adapted of course). the composer ClassLoader matches the expectations of Doctrine here