Merge pull request #7502 from nextcloud/authorative_classmaps_for_apps

Use proper authorative-autoloader for app autoloaders
This commit is contained in:
Roeland Jago Douma 2017-12-14 10:01:20 +01:00 committed by GitHub
commit b5d9c3b972
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
38 changed files with 38 additions and 209 deletions

View File

@ -2,7 +2,7 @@
"config" : {
"vendor-dir": ".",
"optimize-autoloader": true,
"authorative-autoloader": true,
"classmap-authoritative": true,
"autoloader-suffix": "AdminAudit"
},
"autoload" : {

View File

@ -29,22 +29,13 @@ class ComposerAutoloaderInitAdminAudit
call_user_func(\Composer\Autoload\ComposerStaticInitAdminAudit::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;

View File

@ -2,7 +2,7 @@
"config" : {
"vendor-dir": ".",
"optimize-autoloader": true,
"authorative-autoloader": true,
"classmap-authoritative": true,
"autoloader-suffix": "Comments"
},
"autoload" : {

View File

@ -29,22 +29,13 @@ class ComposerAutoloaderInitComments
call_user_func(\Composer\Autoload\ComposerStaticInitComments::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;

View File

@ -2,7 +2,7 @@
"config" : {
"vendor-dir": ".",
"optimize-autoloader": true,
"authorative-autoloader": true,
"classmap-authoritative": true,
"autoloader-suffix": "DAV"
},
"autoload" : {

View File

@ -29,22 +29,13 @@ class ComposerAutoloaderInitDAV
call_user_func(\Composer\Autoload\ComposerStaticInitDAV::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;

View File

@ -2,7 +2,7 @@
"config" : {
"vendor-dir": ".",
"optimize-autoloader": true,
"authorative-autoloader": true,
"classmap-authoritative": true,
"autoloader-suffix": "Encryption"
},
"autoload" : {

View File

@ -29,22 +29,13 @@ class ComposerAutoloaderInitEncryption
call_user_func(\Composer\Autoload\ComposerStaticInitEncryption::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;

View File

@ -2,7 +2,7 @@
"config" : {
"vendor-dir": ".",
"optimize-autoloader": true,
"authorative-autoloader": true,
"classmap-authoritative": true,
"autoloader-suffix": "FederatedFileSharing"
},
"autoload" : {

View File

@ -29,22 +29,13 @@ class ComposerAutoloaderInitFederatedFileSharing
call_user_func(\Composer\Autoload\ComposerStaticInitFederatedFileSharing::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;

View File

@ -2,7 +2,7 @@
"config" : {
"vendor-dir": ".",
"optimize-autoloader": true,
"authorative-autoloader": true,
"classmap-authoritative": true,
"autoloader-suffix": "Federation"
},
"autoload" : {

View File

@ -29,22 +29,13 @@ class ComposerAutoloaderInitFederation
call_user_func(\Composer\Autoload\ComposerStaticInitFederation::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;

View File

@ -2,7 +2,7 @@
"config" : {
"vendor-dir": ".",
"optimize-autoloader": true,
"authorative-autoloader": true,
"classmap-authoritative": true,
"autoloader-suffix": "Files"
},
"autoload" : {

View File

@ -29,22 +29,13 @@ class ComposerAutoloaderInitFiles
call_user_func(\Composer\Autoload\ComposerStaticInitFiles::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;

View File

@ -2,7 +2,7 @@
"config" : {
"vendor-dir": ".",
"optimize-autoloader": true,
"authorative-autoloader": true,
"classmap-authoritative": true,
"autoloader-suffix": "Files_Sharing"
},
"autoload" : {

View File

@ -29,22 +29,13 @@ class ComposerAutoloaderInitFiles_Sharing
call_user_func(\Composer\Autoload\ComposerStaticInitFiles_Sharing::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;

View File

@ -2,7 +2,7 @@
"config" : {
"vendor-dir": ".",
"optimize-autoloader": true,
"authorative-autoloader": true,
"classmap-authoritative": true,
"autoloader-suffix": "Files_Trashbin"
},
"autoload" : {

View File

@ -29,22 +29,13 @@ class ComposerAutoloaderInitFiles_Trashbin
call_user_func(\Composer\Autoload\ComposerStaticInitFiles_Trashbin::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;

View File

@ -2,7 +2,7 @@
"config" : {
"vendor-dir": ".",
"optimize-autoloader": true,
"authorative-autoloader": true,
"classmap-authoritative": true,
"autoloader-suffix": "Files_Versions"
},
"autoload" : {

View File

@ -29,22 +29,13 @@ class ComposerAutoloaderInitFiles_Versions
call_user_func(\Composer\Autoload\ComposerStaticInitFiles_Versions::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;

View File

@ -2,7 +2,7 @@
"config" : {
"vendor-dir": ".",
"optimize-autoloader": true,
"authorative-autoloader": true,
"classmap-authoritative": true,
"autoloader-suffix": "LookupServerConnector"
},
"autoload" : {

View File

@ -29,22 +29,13 @@ class ComposerAutoloaderInitLookupServerConnector
call_user_func(\Composer\Autoload\ComposerStaticInitLookupServerConnector::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;

View File

@ -2,7 +2,7 @@
"config" : {
"vendor-dir": ".",
"optimize-autoloader": true,
"authorative-autoloader": true,
"classmap-authoritative": true,
"autoloader-suffix": "OAuth2"
},
"autoload" : {

View File

@ -29,22 +29,13 @@ class ComposerAutoloaderInitOAuth2
call_user_func(\Composer\Autoload\ComposerStaticInitOAuth2::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;

View File

@ -2,7 +2,7 @@
"config" : {
"vendor-dir": ".",
"optimize-autoloader": true,
"authorative-autoloader": true,
"classmap-authoritative": true,
"autoloader-suffix": "Provisioning_API"
},
"autoload" : {

View File

@ -29,22 +29,13 @@ class ComposerAutoloaderInitProvisioning_API
call_user_func(\Composer\Autoload\ComposerStaticInitProvisioning_API::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;

View File

@ -2,7 +2,7 @@
"config" : {
"vendor-dir": ".",
"optimize-autoloader": true,
"authorative-autoloader": true,
"classmap-authoritative": true,
"autoloader-suffix": "ShareByMail"
},
"autoload" : {

View File

@ -29,22 +29,13 @@ class ComposerAutoloaderInitShareByMail
call_user_func(\Composer\Autoload\ComposerStaticInitShareByMail::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;

View File

@ -2,7 +2,7 @@
"config" : {
"vendor-dir": ".",
"optimize-autoloader": true,
"authorative-autoloader": true,
"classmap-authoritative": true,
"autoloader-suffix": "SystemTags"
},
"autoload" : {

View File

@ -29,22 +29,13 @@ class ComposerAutoloaderInitSystemTags
call_user_func(\Composer\Autoload\ComposerStaticInitSystemTags::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;

View File

@ -2,7 +2,7 @@
"config" : {
"vendor-dir": ".",
"optimize-autoloader": true,
"authorative-autoloader": true,
"classmap-authoritative": true,
"autoloader-suffix": "Testing"
},
"autoload" : {

View File

@ -29,22 +29,13 @@ class ComposerAutoloaderInitTesting
call_user_func(\Composer\Autoload\ComposerStaticInitTesting::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;

View File

@ -2,7 +2,7 @@
"config" : {
"vendor-dir": ".",
"optimize-autoloader": true,
"authorative-autoloader": true,
"classmap-authoritative": true,
"autoloader-suffix": "TwoFactorBackupCodes"
},
"autoload" : {

View File

@ -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;

View File

@ -2,7 +2,7 @@
"config" : {
"vendor-dir": ".",
"optimize-autoloader": true,
"authorative-autoloader": true,
"classmap-authoritative": true,
"autoloader-suffix": "UpdateNotification"
},
"autoload" : {

View File

@ -29,22 +29,13 @@ class ComposerAutoloaderInitUpdateNotification
call_user_func(\Composer\Autoload\ComposerStaticInitUpdateNotification::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;

View File

@ -2,7 +2,7 @@
"config" : {
"vendor-dir": ".",
"optimize-autoloader": true,
"authorative-autoloader": true,
"classmap-authoritative": true,
"autoloader-suffix": "User_LDAP"
},
"autoload" : {

View File

@ -29,22 +29,13 @@ class ComposerAutoloaderInitUser_LDAP
call_user_func(\Composer\Autoload\ComposerStaticInitUser_LDAP::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;