[dev] [commits] Horde branch master updated. 53c5cf65e2a7adf62cb6fa46d1d3e082252aae63

Chuck Hagenbuch chuck at horde.org
Sat Jun 5 02:50:20 UTC 2010


Quoting Michael Rubinsky <mrubinsk at horde.org>:

> Horde_Registry#__construct() is still calling  
> Horde_Autoloader#addCallback statically, which is causing errors due  
> to the use of $this in that method... Setting _callbacks() to a  
> static member solves the issue - I don't think we would be  
> instantiating more then one Autoloader, would we?

Not sure why I wasn't seeing that - try now?

I moved the calls down a bit so they could be instance methods; it's  
unlikely that we would have more than one autoloader, but with  
spl_autoload_register there's no reason it wouldn't work, and it also  
makes it a lot easier to test/mock/etc.

-chuck


More information about the dev mailing list