public function AnnotationDriver::__construct in Plug 7
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
- lib/
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\DriverCode
public function __construct($reader, $paths = null) {
$this->reader = $reader;
if ($paths) {
$this
->addPaths((array) $paths);
}
}