Avoid phpunit process-isolation errors with the autoload closure
parent
202cfb4fb9
commit
5d414436ba
|
@ -35,7 +35,7 @@ if (!class_exists('Composer\\Autoload\\ClassLoader', false)) {
|
||||||
require __DIR__.'/ClassLoader.php';
|
require __DIR__.'/ClassLoader.php';
|
||||||
}
|
}
|
||||||
|
|
||||||
$__composer_autoload_init = function() {
|
return call_user_func(function() {
|
||||||
$loader = new \Composer\Autoload\ClassLoader();
|
$loader = new \Composer\Autoload\ClassLoader();
|
||||||
|
|
||||||
$map = require __DIR__.'/autoload_namespaces.php';
|
$map = require __DIR__.'/autoload_namespaces.php';
|
||||||
|
@ -47,9 +47,8 @@ $__composer_autoload_init = function() {
|
||||||
$loader->register();
|
$loader->register();
|
||||||
|
|
||||||
return $loader;
|
return $loader;
|
||||||
};
|
});
|
||||||
|
|
||||||
return $__composer_autoload_init();
|
|
||||||
EOF;
|
EOF;
|
||||||
|
|
||||||
$filesystem = new Filesystem();
|
$filesystem = new Filesystem();
|
||||||
|
|
Loading…
Reference in New Issue