public function AnnotationDriver::addPaths

Append lookup paths to metadata driver.

Parameters

array $paths:

1 call to AnnotationDriver::addPaths()
AnnotationDriver::__construct in drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/Driver/AnnotationDriver.php
Initializes a new AnnotationDriver that uses the given AnnotationReader for reading docblock annotations.

File

drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/Driver/AnnotationDriver.php, line 93

Class

AnnotationDriver
The AnnotationDriver reads the mapping metadata from docblock annotations.

Namespace

Doctrine\Common\Persistence\Mapping\Driver

Code

public function addPaths(array $paths) {
  $this->paths = array_unique(array_merge($this->paths, $paths));
}