31
0
mirror of https://github.com/joomla-extensions/patchtester.git synced 2024-06-14 19:02:21 +00:00

Make sure the autoloader class is not loaded yet

Signed-off-by: Roland Dalmulder <contact@rolandd.com>
This commit is contained in:
Roland Dalmulder 2020-04-03 22:07:34 +02:00
parent 37d1b288c5
commit daa9c3b712
No known key found for this signature in database
GPG Key ID: FD49814C56AE3AF9

View File

@ -387,9 +387,16 @@ class PullModel extends AbstractModel
return;
}
require_once $path . '/libraries/vendor/composer/autoload_static.php';
// Check if the class is already defined
$autoloadClass = '\Composer\Autoload\ComposerStaticInit' . $match[1];
if (class_exists($autoloadClass))
{
return;
}
require_once $path . '/libraries/vendor/composer/autoload_static.php';
// Get all the files
$files = $autoloadClass::$files;