-- keith Pope <[email protected]> wrote
(on Thursday, 16 July 2009, 01:39 PM +0100):
> I need to create an autoloader that is called before any of the other
> autoloaders to check if the class is stored within my DI Container.
> How can I do this with Zend_Loader_Autoloader

Create your autoloader callback, and then attach it to
Zend_Loader_Autoloader using unshiftAutoloader():

    $al = Zend_Loader_Autoloader::getInstance()
    $al->unshiftAutoloader($myDiAutoloaderCallback);

This puts it as the first autoloader in the stack maintained by
Zend_Loader_Autoloader.

-- 
Matthew Weier O'Phinney
Project Lead            | [email protected]
Zend Framework          | http://framework.zend.com/

Reply via email to