On 09.10.2010, at 18:00, Bernhard Schussek <bschus...@gmail.com> wrote:
Hi Lukas,
What about data objects? It doesn't make sense to create interfaces
for them (except for special behaviours) - still I'd like to type
hint methods using them.
well for one your code is your thing. plus i am mainly talking about
stuff you handle through the DIC because those parameters should be
replaceable without changing the code using the DIC. the dependency
should never be on the implementation. it should always be on the
interface. so all symfony2 core stuff should use interfaces or you
might as well not bother with a DIC. but its also important that all
bundle authors also use these interfaces when typehinting! actually
imho its horrible that php even allows type hinting actual class
names. but i digress.
regards
Lukas
--
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 symfony-devs@googlegroups.com
To unsubscribe from this group, send email to
symfony-devs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en