What if we included the subclass "in the box"?

Both the old and the new are designed to work smoothly with subclasses.

Cheers,
Gavin

Stanislav Malyshev wrote:
Regarding static accessors for the "special" instance stored in a static variable, they can easily be added using a subclass of Zend_Registry.
I'm in favor of keeping Zend_Registry as light as possible.

Everything "can be added". But we want our classes to be simple to use as they are, not "some assembly required", do we? So why not make extra step towards the user and give people tools for working conveniently with their classes and not have everybody to rewrite these additions by themselves each time? That's would be the scenario 90% of the users would be doing anyway, so why not make it easy?

Reply via email to