Re: [RFC] Reflection annotations reader
| From: | Ryan McCue | Date: | Mon, 07 Jan 2013 05:47:07 +0000 |
| Subject: | Re: [RFC] Reflection annotations reader | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-64624@lists.php.net to get a copy of this message | ||
Yahav Gindi Bar wrote:
> Though I agree with you that the main problem is the syntax.
> We can extract the entire doc-comment and only isolate between annotations,
> so doc-comment like:
> /**
> * @Route("/")
> * @ORM(Key="foo")
> * @var string
> */
>
> Will be : array( 'Route("/")' => "",
> 'ORM(Key="foo")' => "", "var" =>
> "string" )
What about repeated keys? i.e:
@param int $a
@param string $b
--
Ryan McCue
<http://ryanmccue.info/>