On 22.03.2010 11:05, Romain Cambien wrote: > I may miss something, but why just ignoring the parameter name and > focusing on the type hint to avoid conflicts ?
This defeats the point of the DI imo, since you cannot just inject any object in it anymore but need it to extend your UserService class. Of course, what you inject would need a common interface, but implementing interfaces for all your classes would be getting old real quick. Type hint if you want, but don't force everyone to do so. Cheers, Jordi
signature.asc
Description: OpenPGP digital signature
