-- Michael Patrick <[EMAIL PROTECTED]> wrote
(on Saturday, 25 November 2006, 11:37 PM -0600):
> Michael Depetrillo wrote:
> > I have revision 1863 and the __construct() method of Zend_Controller_Front
> > is private causing php 5.1.6 to throw a fatal error.

Note: it's been this way in core since the beginning; the change
occurred in the incubator.

> Looks like in 1646 the incubator Front Controller went back to singleton.
> 
> * Reinstated getInstance(), based on feedback from:
>   * 
> http://drone-alliance.org/wordpress/2006/11/11/discovering-the-zend-framework-020-preview/
>   * many questions on-list
>   * Front controllers should never have more than one instance
> * Added resetInstance() method to front controller, which allows setting the
>   object to a known clean state -- allowing tests to run normally.

I emailed the fw-mvc list about this, and thought I cross-posted to
fw-general; guess the cross-post didn't happen.

After the large number of people expressing confusion about the lack of
getInstance(), and some discussion with others in the MVC group and dev
team, I reverted to using a singleton instance of the front controller.
This allows it to keep backward compatability with pre-0.2.0 core
releases, and has several other benefits as well. resetInstance() was
added to allow reverting to a known clean state.

-- 
Matthew Weier O'Phinney
PHP Developer            | [EMAIL PROTECTED]
Zend - The PHP Company   | http://www.zend.com/

Reply via email to