diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2021-03-02 18:36:21 +0300 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2021-03-02 18:36:21 +0300 |
commit | 19e213696324f4d9ce3189aa87c43b9957ea939e (patch) | |
tree | 8133b84c0f95eaf50b9bf403f7e405006c2078f3 /apps/sharebymail/composer | |
parent | 2afa1c57393790b33bc6593f9215482d8a4dd9f9 (diff) |
Update autoloader files
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/sharebymail/composer')
-rw-r--r-- | apps/sharebymail/composer/composer/ClassLoader.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/sharebymail/composer/composer/ClassLoader.php b/apps/sharebymail/composer/composer/ClassLoader.php index 4d989a212c9..247294d66ee 100644 --- a/apps/sharebymail/composer/composer/ClassLoader.php +++ b/apps/sharebymail/composer/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]); |