Skip to content

Commit

Permalink
Drop forceful loading of annotations (#10321)
Browse files Browse the repository at this point in the history
Since doctrine/annotations 1.10, autoloading is used when everything
else has failed. Using registerFile() has been deprecated in favor of
that later on.
  • Loading branch information
greg0ire authored Dec 19, 2022
1 parent 82a4063 commit c4835cc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 58 deletions.
3 changes: 0 additions & 3 deletions lib/Doctrine/ORM/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
namespace Doctrine\ORM;

use Doctrine\Common\Annotations\AnnotationReader;
use Doctrine\Common\Annotations\AnnotationRegistry;
use Doctrine\Common\Annotations\CachedReader;
use Doctrine\Common\Annotations\SimpleAnnotationReader;
use Doctrine\Common\Cache\ArrayCache;
Expand Down Expand Up @@ -182,8 +181,6 @@ public function newDefaultAnnotationDriver($paths = [], $useSimpleAnnotationRead
);
}

AnnotationRegistry::registerFile(__DIR__ . '/Mapping/Driver/DoctrineAnnotations.php');

if ($useSimpleAnnotationReader) {
// Register the ORM Annotations in the AnnotationRegistry
$reader = new SimpleAnnotationReader();
Expand Down
55 changes: 0 additions & 55 deletions lib/Doctrine/ORM/Mapping/Driver/DoctrineAnnotations.php

This file was deleted.

0 comments on commit c4835cc

Please sign in to comment.