0
votes

In vendor/composer/autoload_real.php in symfony project the function getLoader is called from autoload.php

In this function, I have :

spl_autoload_register(array('ComposerAutoloaderInit374429f4ab4935127e2d36a0613c8d3a', 'loadClassLoader'), true, true);

The spl_autoload_register register two autoloader "ComposerAutoloaderInit374429f4ab4935127e2d36a0613c8d3a" and "loadClassLoader"

The function "loadClassLoader" exist but I cann't found the "ComposerAutoloaderInit374429f4ab4935127e2d36a0613c8d3a" function.

My question is :

There is "ComposerAutoloaderInit374429f4ab4935127e2d36a0613c8d3a" a autoloader function or the nameclass?

If it is an autoloder function, where is in the class?

Thanks in advance.

1

1 Answers

3
votes

That is actually only one autoloader, the array is a callback.

ComposerAutoloaderInit374429f4ab4935127e2d36a0613c8d3a is a name of the class, loadClassLoader is the name of its method to be used.

The class is defined directly in autoload_real.php file, the method is the first method in the class.