summaryrefslogtreecommitdiffstats
path: root/apps/twofactor_backupcodes/composer
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2017-12-14 08:31:31 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2017-12-14 08:31:31 +0100
commit49b095b78e46090f731314a914786d8ddbb04bbb (patch)
tree31603d4460efd017238ab5abed1b14aa8dca09e3 /apps/twofactor_backupcodes/composer
parentce12763ab7e29d8b41ef1b0594923f7911decea9 (diff)
downloadnextcloud-server-49b095b78e46090f731314a914786d8ddbb04bbb.tar.gz
nextcloud-server-49b095b78e46090f731314a914786d8ddbb04bbb.zip
Use proper authorative-autoloader for app autoloaders
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/twofactor_backupcodes/composer')
-rw-r--r--apps/twofactor_backupcodes/composer/composer.json2
-rw-r--r--apps/twofactor_backupcodes/composer/composer/autoload_real.php11
2 files changed, 2 insertions, 11 deletions
diff --git a/apps/twofactor_backupcodes/composer/composer.json b/apps/twofactor_backupcodes/composer/composer.json
index ef521965208..bfa807a8e4f 100644
--- a/apps/twofactor_backupcodes/composer/composer.json
+++ b/apps/twofactor_backupcodes/composer/composer.json
@@ -2,7 +2,7 @@
"config" : {
"vendor-dir": ".",
"optimize-autoloader": true,
- "authorative-autoloader": true,
+ "classmap-authoritative": true,
"autoloader-suffix": "TwoFactorBackupCodes"
},
"autoload" : {
diff --git a/apps/twofactor_backupcodes/composer/composer/autoload_real.php b/apps/twofactor_backupcodes/composer/composer/autoload_real.php
index 435d883ffa0..9e6baad706d 100644
--- a/apps/twofactor_backupcodes/composer/composer/autoload_real.php
+++ b/apps/twofactor_backupcodes/composer/composer/autoload_real.php
@@ -29,22 +29,13 @@ class ComposerAutoloaderInitTwoFactorBackupCodes
call_user_func(\Composer\Autoload\ComposerStaticInitTwoFactorBackupCodes::getInitializer($loader));
} else {
- $map = require __DIR__ . '/autoload_namespaces.php';
- foreach ($map as $namespace => $path) {
- $loader->set($namespace, $path);
- }
-
- $map = require __DIR__ . '/autoload_psr4.php';
- foreach ($map as $namespace => $path) {
- $loader->setPsr4($namespace, $path);
- }
-
$classMap = require __DIR__ . '/autoload_classmap.php';
if ($classMap) {
$loader->addClassMap($classMap);
}
}
+ $loader->setClassMapAuthoritative(true);
$loader->register(true);
return $loader;