mirror of
https://github.com/joomla-extensions/patchtester.git
synced 2024-09-28 20:49:00 +00:00
Make sure the autoloader class is not loaded yet
Signed-off-by: Roland Dalmulder <contact@rolandd.com>
This commit is contained in:
parent
37d1b288c5
commit
daa9c3b712
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user