DDC-1133 - Ducktype AnnotationReader in AnnotationDriver
This commit is contained in:
parent
2c50faf5b2
commit
261d3c892e
@ -67,10 +67,10 @@ class AnnotationDriver implements Driver
|
||||
* Initializes a new AnnotationDriver that uses the given AnnotationReader for reading
|
||||
* docblock annotations.
|
||||
*
|
||||
* @param $reader The AnnotationReader to use.
|
||||
* @param AnnotationReader $reader The AnnotationReader to use, duck-typed.
|
||||
* @param string|array $paths One or multiple paths where mapping classes can be found.
|
||||
*/
|
||||
public function __construct(AnnotationReader $reader, $paths = null)
|
||||
public function __construct($reader, $paths = null)
|
||||
{
|
||||
$this->_reader = $reader;
|
||||
if ($paths) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user