lib/Doctrine/ORM/Configuration.php
public function newDefaultAnnotationDriver(array $paths = []) : AnnotationDriver
    {
        AnnotationRegistry::registerFile(__DIR__ . '/Annotation/DoctrineAnnotations.php');

        $reader = new CachedReader(new AnnotationReader(), new ArrayCache());

        return new AnnotationDriver($reader, $paths);
    }
public function newDefaultAnnotationDriver(array $paths = []) : AnnotationDriver
    {
        AnnotationRegistry::registerFile(__DIR__ . '/Annotation/DoctrineAnnotations.php');

        $reader = new CachedReader(new AnnotationReader(), new ArrayCache());

        return new AnnotationDriver($reader, $paths);
    }
public function newDefaultAnnotationDriver ( array $ paths = [ ] ) : AnnotationDriver { AnnotationRegistry :: registerFile ( __DIR__ . '/Annotation/DoctrineAnnotations.php' ) ; $ reader = new CachedReader ( new AnnotationReader ( ) , new ArrayCache ( ) ) ; return new AnnotationDriver ( $ reader , $ paths ) ; }
Adds a new default annotation driver with a correctly configured annotation reader.

@param string[] $paths
Adds a new default annotation driver with a correctly configured annotation reader .