mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Require file autoloads after the autoloader is registered
This commit is contained in:
parent
fd776853a4
commit
adaa788955
2 changed files with 9 additions and 9 deletions
|
@ -5,9 +5,6 @@ if (!class_exists('Composer\\Autoload\\ClassLoader', false)) {
|
|||
require __DIR__ . '/composer' . '/ClassLoader.php';
|
||||
}
|
||||
|
||||
require __DIR__ . '/a/a/test.php';
|
||||
require __DIR__ . '/b/b/test2.php';
|
||||
|
||||
return call_user_func(function() {
|
||||
$loader = new \Composer\Autoload\ClassLoader();
|
||||
$composerDir = __DIR__ . '/composer';
|
||||
|
@ -24,5 +21,8 @@ return call_user_func(function() {
|
|||
|
||||
$loader->register();
|
||||
|
||||
require __DIR__ . '/a/a/test.php';
|
||||
require __DIR__ . '/b/b/test2.php';
|
||||
|
||||
return $loader;
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue