You are here

public function AnnotationDriver::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/Driver/AnnotationDriver.php \Doctrine\Common\Persistence\Mapping\Driver\AnnotationDriver::__construct()

Initializes a new AnnotationDriver that uses the given AnnotationReader for reading docblock annotations.

Parameters

AnnotationReader $reader The AnnotationReader to use, duck-typed.:

string|array|null $paths One or multiple paths where mapping classes can be found.:

File

vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/Driver/AnnotationDriver.php, line 85

Class

AnnotationDriver
The AnnotationDriver reads the mapping metadata from docblock annotations.

Namespace

Doctrine\Common\Persistence\Mapping\Driver

Code

public function __construct($reader, $paths = null) {
  $this->reader = $reader;
  if ($paths) {
    $this
      ->addPaths((array) $paths);
  }
}