Issues

ZF-12398: Zend_Loader_ClassMapAutoloader is not auto included when using Zend_Loader_AutoloaderFactory::factory

Issue Type: Bug Created: 2012-08-31T17:11:04.000+0000 Last Updated: 2013-04-05T16:07:22.000+0000 Status: Closed Fix version(s): Reporter: Kathryn Reeve (binarykitten) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Loader

Related issues: Attachments:

Description

When using the new Zend_Loader_AutoloaderFactory with ClassMap Autoloader before the Standard Autoloader, the application falls over with the error:

<pre class="literal">
Autoloader class "Zend_Loader_ClassMapAutoloader" not loaded



<pre class="highlight">
include 'Zend/Loader/AutoloaderFactory.php';
 $config = array(
        'Zend_Loader_ClassMapAutoloader' => array(
            './library/autoload_classmap.php',
            './application/autoload_classmap.php'
        ),
        'Zend_Loader_StandardAutoloader' => array(
            'prefixes' => array(
                'My_'       => 'My',
                'Zend_'     => 'Zend',
                'ZendX_'    => 'ZendX',
            ),
            'fallback_autoloader' => true,
        ),
    );

    Zend_Loader_AutoloaderFactory::factory($config);

Adding the following:

<pre class="literal">
include 'Zend/Loader/ClassMapAutoloader.php';

before the

<pre class="literal">
Zend_Loader_AutoloaderFactory::factory($config);

line fixes the issue.

Comments

Posted by Ralph Schindler (ralph) on 2013-04-05T16:07:22.000+0000

This issue has been closed on Jira and moved to GitHub for issue tracking. To continue following the resolution of this issues, please visit: https://github.com/zendframework/zf1/issues/8

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts