Hi Bernhard,
yes its possible.
you can have all sorts of service wiring, through fields, setters and
constructor.
By name, by type, by magic :)

But I do not see a good way to implement it in PHP.
You cant do by Type, you cannot do easily with an annotation and you
shouldn't do by name, due to the mentioned pattern translation magic
:)

I think getting access to the container and retrieving the service
from there is among the cleanest and most explicit variants.
Especially if you worry about conflicting magic (like action
parameters and services)

Fabian

-- 
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

To unsubscribe from this group, send email to 
symfony-devs+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to