Le 10/03/2011 12:08, Martin Hasoň a écrit :
OK. But I don't understand one thing. The API (Symfony2 or Doctrine2)
consists only of public methods. Where is the break BC if I change the
protected method?
Yes the DI Container is huge benefit, but I don't want copy the code
(copy and paste programming is antipattern).
Providing protected methods means the class is intended to be
inheritable (this is what protected is for). So using protected
everywhere means you allow the user to extend the core classes and
changing the protected methods would break the child classes. The only
real internal implementation is a private implementation.
--
Christophe | Stof
--
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