Skip to content

Commit

Permalink
Added method to retrieve currently used Reader. This allows projects …
Browse files Browse the repository at this point in the history
…that use Doctrine to recycle the reader to use with other annotation-driven packages, like DMS\Filter and Symfony\Validator
  • Loading branch information
rdohms committed Aug 10, 2011
1 parent 816ce41 commit 07e1c1e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,16 @@ public function getPaths()
return $this->_paths;
}

/**
* Retrieve the current annotation reader
*
* @return AnnotationReader
*/
public function getReader()
{
return $this->_reader;
}

/**
* Get the file extension used to look for mapping files under
*
Expand Down

0 comments on commit 07e1c1e

Please sign in to comment.