aboutsummaryrefslogtreecommitdiffstats
path: root/vendor
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-05-07 08:46:28 +0000
committerMario <mario@mariovavti.com>2023-05-07 08:46:28 +0000
commitbf2d41eb14ef066d6e316b62270c03be27e9b01c (patch)
tree60bcebcaaefbb30d1ec0e3993f8ceb7a213b47eb /vendor
parent158f9afb376baa3edb4b7a4ad1a0d2ebd2c713ed (diff)
downloadvolse-hubzilla-bf2d41eb14ef066d6e316b62270c03be27e9b01c.tar.gz
volse-hubzilla-bf2d41eb14ef066d6e316b62270c03be27e9b01c.tar.bz2
volse-hubzilla-bf2d41eb14ef066d6e316b62270c03be27e9b01c.zip
composer autoload
Diffstat (limited to 'vendor')
-rw-r--r--vendor/composer/ClassLoader.php12
-rw-r--r--vendor/composer/autoload_real.php6
2 files changed, 11 insertions, 7 deletions
diff --git a/vendor/composer/ClassLoader.php b/vendor/composer/ClassLoader.php
index fd56bd7d8..a72151c77 100644
--- a/vendor/composer/ClassLoader.php
+++ b/vendor/composer/ClassLoader.php
@@ -429,7 +429,8 @@ class ClassLoader
public function loadClass($class)
{
if ($file = $this->findFile($class)) {
- (self::$includeFile)($file);
+ $includeFile = self::$includeFile;
+ $includeFile($file);
return true;
}
@@ -560,7 +561,10 @@ class ClassLoader
return false;
}
- private static function initializeIncludeClosure(): void
+ /**
+ * @return void
+ */
+ private static function initializeIncludeClosure()
{
if (self::$includeFile !== null) {
return;
@@ -574,8 +578,8 @@ class ClassLoader
* @param string $file
* @return void
*/
- self::$includeFile = static function($file) {
+ self::$includeFile = \Closure::bind(static function($file) {
include $file;
- };
+ }, null, null);
}
}
diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php
index 16298a0b9..655b7a2af 100644
--- a/vendor/composer/autoload_real.php
+++ b/vendor/composer/autoload_real.php
@@ -38,15 +38,15 @@ class ComposerAutoloaderInit7b34d7e50a62201ec5d5e526a5b8b35d
$loader->register(true);
$filesToLoad = \Composer\Autoload\ComposerStaticInit7b34d7e50a62201ec5d5e526a5b8b35d::$files;
- $requireFile = static function ($fileIdentifier, $file) {
+ $requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
require $file;
}
- };
+ }, null, null);
foreach ($filesToLoad as $fileIdentifier => $file) {
- ($requireFile)($fileIdentifier, $file);
+ $requireFile($fileIdentifier, $file);
}
return $loader;