On 17.04.2011 15:59, Lukas Kahwe Smith wrote:
> No, I do not want to disable injection for an entire interface.
> All I want is to be able to decide on a per service basis what to inject
> without syntax sugar features from limiting me.
> At the same time I do not think it makes sense to add a bazillion new flags
> and options to handle disabling these syntax sugar features if they cause a
> problem.
>
> This is why I (and I guess also Bulat) favors the simplicity of a per service
> flag (rather than a per method/interface flag etc).
>
> So yes, the point isn't that I want to just blindly disable all interface
> injection for a service, but that I think trying to do it more granular is
> overboard and for the few (but important) cases where I run into issues with
> interface injection I am prepared to manually deal with it by then manually
> setting the proper services to call.
+1 on this
Another approach though, which might conciliate everyone (riiight):
services:
foo:
class: lala
interfaces:
Some\Interface: @otherservice
Basically there you could override which services are taken for which
interface, on a per-service basis.
Cheers
--
Jordi Boggiano
@seldaek :: http://seld.be/
--
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