You are here

public function AnnotationDriver::addPaths 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::addPaths()

Appends lookup paths to metadata driver.

Parameters

array $paths:

Return value

void

1 call to AnnotationDriver::addPaths()
AnnotationDriver::__construct in 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

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