You are here

public function AnnotationDriver::addPaths in Plug 7

Appends lookup paths to metadata driver.

Parameters

array $paths:

Return value

void

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

File

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

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));
}