Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DDC-13] Provide easy customization of the annotation creation proces…
…s. Additionally, rudimentary support for inheriting from Lexer and Parser has been added. Lastly, removed some more _ prefixes.
- Loading branch information
Showing
5 changed files
with
146 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,11 @@ | |
/** | ||
* Simple lexer for docblock annotations. | ||
* | ||
* This Lexer can be subclassed to customize certain aspects of the annotation | ||
* lexing (token recognition) process. Note though that currently no special care | ||
* is taken to maintain full backwards compatibility for subclasses. Implementation | ||
* details of the default Lexer can change without explicit notice. | ||
* | ||
* @since 2.0 | ||
* @author Benjamin Eberlei <kontakt@beberlei.de> | ||
* @author Guilherme Blanco <guilhermeblanco@hotmail.com> | ||
|
@@ -70,7 +75,7 @@ protected function getNonCatchablePatterns() | |
/** | ||
* @inheritdoc | ||
*/ | ||
protected function _getType(&$value) | ||
protected function getType(&$value) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
romanb
Author
Contributor
|
||
{ | ||
$type = self::T_NONE; | ||
$newVal = $this->getNumeric($value); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
You should also update Doctrine\ORM\Query\Parser, which should now have a getType() method.