Skip to content

Commit

Permalink
Make sure the autoloader class is not loaded yet
Browse files Browse the repository at this point in the history
Signed-off-by: Roland Dalmulder <[email protected]>
  • Loading branch information
roland-d committed Apr 3, 2020
1 parent 37d1b28 commit daa9c3b
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -387,9 +387,16 @@ static function ($composerFile) use (&$filesToCheck, $path) {
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;

Expand Down

0 comments on commit daa9c3b

Please sign in to comment.