Update annotation handling in AnnotationDriver to work with AnnotationRegistry and bump common dependency
This commit is contained in:
parent
5299bd788f
commit
43d8466fa9
@ -21,11 +21,10 @@ namespace Doctrine\ORM\Mapping\Driver;
|
||||
|
||||
use Doctrine\Common\Cache\ArrayCache,
|
||||
Doctrine\Common\Annotations\AnnotationReader,
|
||||
Doctrine\Common\Annotations\AnnotationRegistry,
|
||||
Doctrine\ORM\Mapping\ClassMetadataInfo,
|
||||
Doctrine\ORM\Mapping\MappingException;
|
||||
|
||||
require __DIR__ . '/DoctrineAnnotations.php';
|
||||
|
||||
/**
|
||||
* The AnnotationDriver reads the mapping metadata from docblock annotations.
|
||||
*
|
||||
@ -73,6 +72,7 @@ class AnnotationDriver implements Driver
|
||||
public function __construct($reader, $paths = null)
|
||||
{
|
||||
$this->_reader = $reader;
|
||||
AnnotationRegistry::registerFile(__DIR__ . '/DoctrineAnnotations.php');
|
||||
if ($paths) {
|
||||
$this->addPaths((array) $paths);
|
||||
}
|
||||
|
2
lib/vendor/doctrine-common
vendored
2
lib/vendor/doctrine-common
vendored
@ -1 +1 @@
|
||||
Subproject commit 6a74bf90f5fcf6b404f49aee6c11b78fbd568c6c
|
||||
Subproject commit 6aab4ffd67baa5a8b7342c986616fb07a399c510
|
Loading…
x
Reference in New Issue
Block a user