-- Robert Basic <[email protected]> wrote
(on Tuesday, 26 June 2012, 10:21 PM +0200):
> On 26 June 2012 22:14, Matthew Weier O'Phinney <[email protected]> wrote:
> > -- Robert Basic <[email protected]> wrote
> > (on Tuesday, 26 June 2012, 09:56 PM +0200):
> > > As of ZF 1.12.0RC2 the Zend prefix is not autoregistered with the
> > > standard autoloader, so the AutoloaderFactory can't find the
> > > ClassMapAutoloader.php file.
> > >
> > > 2 possible fixes: include explicitly the ClassMapAutoloader.php, or,
> > > in the AutoloaderFactory options, include the StandardAutoloader as
> > > the first, and the ClassMapAutoloader as the second loader.
> > >
> > > I went with the first option and have updated my post accordingly:
> > > http://robertbasic.com/blog/using-the-new-autoloaders-from-zend-framework-1-12
> >
> > Putting the StandardAutoloader first means it will trigger first,
> > negating the speed factor of the ClassMapAutoloader. As such, I'd go for
> > the first option, explicitly requiring the ClassMapAutoloader.php file.
> 
> But setting it as the "fallback_autoloader" means it should kick in
> last, no matter when it's added, no? At least that's what I figured
> out when trying it. But anyway, I'm going with the explicit
> require_once call, much easier.

"fallback_autoloader" means that if it is passed a class that doesn't
match one of the registered namespaces or vendor prefixes, it will try
to load it via the include_path, using PSR-0 rules. Nothing to do with
kicking in last. :)

-- 
Matthew Weier O'Phinney
Project Lead            | [email protected]
Zend Framework          | http://framework.zend.com/
PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc

-- 
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to