/** * Initializes a new AnnotationDriver that uses the given AnnotationReader for reading phpdoc annotations. * * @param string|array $paths One or multiple paths where mapping classes can be found. * @param Annotations\AnnotationReader|Annotations\Reader $reader The AnnotationReader to use, duck-typed. * @param CacheProvider $cache */ public function __construct(array $paths, Annotations\Reader $reader, CacheProvider $cache = NULL) { foreach ($paths as &$path) { if (($pos = strrpos($path, '*')) === FALSE) { continue; } $ext = substr($path, $pos + 1); $path = rtrim(substr($path, 0, $pos), '/'); $this->fileExtensions[$path][] = $ext; } parent::__construct($reader, $paths); $this->cache = $cache; }
/** * @param AnnotationReader $reader duck-typed annotationreader * @param null $paths wird ignoriert! * @param array $classes ein Array von Strings die Klassennamen sind, die der Treiber laden will (müssen lazyloadable sein */ public function __construct($reader, $paths = null, array $classes = array()) { parent::__construct($reader); $this->classes = $classes; }
public function __construct($reader, $paths = null) { parent::__construct($reader, $paths); }