[symfony-components] Dependency Injection Annotation Service Loader

43 views
Skip to first unread message

Navid Mitchell

unread,
May 14, 2010, 2:06:21 PM5/14/10
to Symfony Components
Hello,

I have written an Annotation based ServiceContainerLoader to use with
Symphonhy Di. I would like to contribute this to the project if
possible. This is a nice addition. You can mark all of your classes
with a @Service annotation and avoid the need for a separate XML file.
The implementation currently supports Service, Argument, and
Configurator annotations equivalent to the XML definition.

Thank you,
Navid Mitchell

--
You received this message because you are subscribed to the Google Groups "Symfony Components" group.
To post to this group, send email to symfony-c...@googlegroups.com.
To unsubscribe from this group, send email to symfony-compone...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/symfony-components?hl=en.

Navid Mitchell

unread,
May 14, 2010, 3:04:28 PM5/14/10
to Symfony Components
I just realized someone else did something similar very recently. I
wish I would have seen that before I went through the trouble. :)
Anyhow, I am still willing to commit the code. Maybe the 2 code bases
can be used to come up with something that provides all the
functionality of both.

Loïc Frering

unread,
May 14, 2010, 3:58:24 PM5/14/10
to symfony-c...@googlegroups.com, Symfony Components
Hello,

I have indeed wrote an annotation loader for the Service Container.
You can find the code on my GitHub: http://github.com/loicfrering/losolib/tree/master/library/LoSo/Symfony/
.

I'm using it intensively in my apps. As well I'll be glad to work with
you on this functionnality and still want to contribute it to the DI
Component.

Regards,

--
Loïc Frering
Reply all
Reply to author
Forward
0 new messages