aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/composer/autoload_real.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/composer/autoload_real.php')
-rw-r--r--vendor/composer/autoload_real.php27
1 files changed, 10 insertions, 17 deletions
diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php
index 8f436d4ab..16298a0b9 100644
--- a/vendor/composer/autoload_real.php
+++ b/vendor/composer/autoload_real.php
@@ -37,25 +37,18 @@ class ComposerAutoloaderInit7b34d7e50a62201ec5d5e526a5b8b35d
$loader->register(true);
- $includeFiles = \Composer\Autoload\ComposerStaticInit7b34d7e50a62201ec5d5e526a5b8b35d::$files;
- foreach ($includeFiles as $fileIdentifier => $file) {
- composerRequire7b34d7e50a62201ec5d5e526a5b8b35d($fileIdentifier, $file);
+ $filesToLoad = \Composer\Autoload\ComposerStaticInit7b34d7e50a62201ec5d5e526a5b8b35d::$files;
+ $requireFile = static function ($fileIdentifier, $file) {
+ if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
+ $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
+
+ require $file;
+ }
+ };
+ foreach ($filesToLoad as $fileIdentifier => $file) {
+ ($requireFile)($fileIdentifier, $file);
}
return $loader;
}
}
-
-/**
- * @param string $fileIdentifier
- * @param string $file
- * @return void
- */
-function composerRequire7b34d7e50a62201ec5d5e526a5b8b35d($fileIdentifier, $file)
-{
- if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
- $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
-
- require $file;
- }
-}