Doctrine\ODM\CouchDB\Configuration::newDefaultAnnotationDriver PHP 메소드

newDefaultAnnotationDriver() 공개 메소드

Add a new default annotation driver with a correctly configured annotation reader.
public newDefaultAnnotationDriver ( array $paths = [] ) : AnnotationDriver
$paths array
리턴 Doctrine\ODM\CouchDB\Mapping\Driver\AnnotationDriver
    public function newDefaultAnnotationDriver($paths = array())
    {
        $reader = new \Doctrine\Common\Annotations\SimpleAnnotationReader();
        $reader->addNamespace('Doctrine\\ODM\\CouchDB\\Mapping\\Annotations');
        return new \Doctrine\ODM\CouchDB\Mapping\Driver\AnnotationDriver($reader, (array) $paths);
    }