class AnnotationDriver extends AnnotationDriver (View source)

The AnnotationDriver reads the mapping metadata from docblock annotations.

Properties

protected $entityAnnotationClasses

Methods

static 
registerAnnotationClasses() deprecated

Registers annotation classes to the common registry.

loadMetadataForClass($className, ClassMetadata $class)

{@inheritdoc}

create(array|string $paths = array(), Reader $reader = null)

Factory method for the Annotation Driver

Details

static registerAnnotationClasses() deprecated

deprecated method was deprecated in 1.2 and will be removed in 2.0. Register class loader through AnnotationRegistry::registerLoader instead.

Registers annotation classes to the common registry.

This method should be called when bootstrapping your application.

loadMetadataForClass($className, ClassMetadata $class)

{@inheritdoc}

Parameters

$className
ClassMetadata $class

static AnnotationDriver create(array|string $paths = array(), Reader $reader = null)

Factory method for the Annotation Driver

Parameters

array|string $paths
Reader $reader

Return Value

AnnotationDriver