Composer Autoload #39

harikt opened this Issue Feb 17, 2013 · 5 comments


None yet
2 participants

harikt commented Feb 17, 2013

Hi @pmjones ,

There is a problem with the way we are autoloading the composer stuffs.

/media/Linux/aurasystem [develop] $ ls vendor/composer/
autoload_classmap.php  autoload_namespaces.php  autoload_real.php  ClassLoader.php  installed.json

You can notice autoload_real.php . When I installed nette/nette , the problem I noticed is nette uses its own loader.

"autoload": {
    "files": ["Nette/loader.php"]

Which is written in autoload_real.php .

And the will not load for we are only checking classmap and namespace . Wondering whether it is a good idea to completely relay on vendor/autoload.php

Thought ?


pmjones commented Feb 17, 2013

What do you think is the solution here?


harikt commented Feb 17, 2013

I feel composer autoload works. or we need to require autoload_real.php also. But I haven't looked more on the 4 classes.


pmjones commented Mar 19, 2013

It looks like autoload.php includes autoload_real.php. E.g.:


// autoload.php generated by Composer

require_once __DIR__ . '/composer' . '/autoload_real.php';

return ComposerAutoloaderInitadcd2cce93e367f1cf29d2edab1c0721::getLoader();

Other ideas?


harikt commented Mar 19, 2013


then adding autoload_real.php will not work, for the class may differ
according to the commit hash I guess.

Hari K T ,

On Tue, Mar 19, 2013 at 9:11 AM, pmjones wrote:

It looks like autoload.php includes autoload_real.php. E.g.:


harikt commented Aug 23, 2013

We will be resolving this in v2 I assume. So let us close it for the time being.

@harikt harikt closed this Aug 23, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment