From 54845a76277f90f448fb2eab64e07e2162524dfd Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 29 Apr 2021 08:33:58 +0000 Subject: composer dump autoload --- vendor/composer/ClassLoader.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'vendor/composer/ClassLoader.php') diff --git a/vendor/composer/ClassLoader.php b/vendor/composer/ClassLoader.php index 4d989a212..247294d66 100644 --- a/vendor/composer/ClassLoader.php +++ b/vendor/composer/ClassLoader.php @@ -311,8 +311,10 @@ class ClassLoader spl_autoload_register(array($this, 'loadClass'), true, $prepend); if (null === $this->vendorDir) { - //no-op - } elseif ($prepend) { + return; + } + + if ($prepend) { self::$registeredLoaders = array($this->vendorDir => $this) + self::$registeredLoaders; } else { unset(self::$registeredLoaders[$this->vendorDir]); -- cgit v1.2.3