On 9/7/10 7:48 AM, Navid Mitchell wrote:
I have created a Bundle that allows services to be defined with
Annotations.

You can find the patch here. git://github.com/NavidMitchell/symfony.git
AnnotationsBundle.

I have not read the code thoroughly but it looks like you use Addendum to parse annotations. But in Symfony2, we use the Doctrine2 annotation parser.

I have not provided any tests and I do not think all of the braces
follow the coding conventions.  Additionally, I have included some
code from the Addendum project for reading annotations.  I would be
happy to fix the braces and remove Addendum if the patch will be used
in Symfony 2. I just migrated this code from another project that was
using Symfony DI. I think this would be a great addition but I don't
want to spend the time if it wont be included.

You are not the first one to provide such a feature for the Symfony2 DIC. I will have a look at your implementation at some others later. I'm not yet sure about the whole annotations concept in PHP though.

A final thought, I think it would be great if Controllers could be
configured strictly with annotations as well. I am thinking of
providing a patch for this. Any interest?

I worked on that this summer and I've just released the bundle, so that you can have a look at it. Any feedback welcome.

Fabien

--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to