Merge pull request #7502 from nextcloud/authorative_classmaps_for_apps
Use proper authorative-autoloader for app autoloaders
This commit is contained in:
commit
b5d9c3b972
|
@ -2,7 +2,7 @@
|
|||
"config" : {
|
||||
"vendor-dir": ".",
|
||||
"optimize-autoloader": true,
|
||||
"authorative-autoloader": true,
|
||||
"classmap-authoritative": true,
|
||||
"autoloader-suffix": "AdminAudit"
|
||||
},
|
||||
"autoload" : {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"config" : {
|
||||
"vendor-dir": ".",
|
||||
"optimize-autoloader": true,
|
||||
"authorative-autoloader": true,
|
||||
"classmap-authoritative": true,
|
||||
"autoloader-suffix": "Comments"
|
||||
},
|
||||
"autoload" : {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"config" : {
|
||||
"vendor-dir": ".",
|
||||
"optimize-autoloader": true,
|
||||
"authorative-autoloader": true,
|
||||
"classmap-authoritative": true,
|
||||
"autoloader-suffix": "DAV"
|
||||
},
|
||||
"autoload" : {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"config" : {
|
||||
"vendor-dir": ".",
|
||||
"optimize-autoloader": true,
|
||||
"authorative-autoloader": true,
|
||||
"classmap-authoritative": true,
|
||||
"autoloader-suffix": "Encryption"
|
||||
},
|
||||
"autoload" : {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"config" : {
|
||||
"vendor-dir": ".",
|
||||
"optimize-autoloader": true,
|
||||
"authorative-autoloader": true,
|
||||
"classmap-authoritative": true,
|
||||
"autoloader-suffix": "FederatedFileSharing"
|
||||
},
|
||||
"autoload" : {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"config" : {
|
||||
"vendor-dir": ".",
|
||||
"optimize-autoloader": true,
|
||||
"authorative-autoloader": true,
|
||||
"classmap-authoritative": true,
|
||||
"autoloader-suffix": "Federation"
|
||||
},
|
||||
"autoload" : {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"config" : {
|
||||
"vendor-dir": ".",
|
||||
"optimize-autoloader": true,
|
||||
"authorative-autoloader": true,
|
||||
"classmap-authoritative": true,
|
||||
"autoloader-suffix": "Files"
|
||||
},
|
||||
"autoload" : {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"config" : {
|
||||
"vendor-dir": ".",
|
||||
"optimize-autoloader": true,
|
||||
"authorative-autoloader": true,
|
||||
"classmap-authoritative": true,
|
||||
"autoloader-suffix": "Files_Sharing"
|
||||
},
|
||||
"autoload" : {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"config" : {
|
||||
"vendor-dir": ".",
|
||||
"optimize-autoloader": true,
|
||||
"authorative-autoloader": true,
|
||||
"classmap-authoritative": true,
|
||||
"autoloader-suffix": "Files_Trashbin"
|
||||
},
|
||||
"autoload" : {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"config" : {
|
||||
"vendor-dir": ".",
|
||||
"optimize-autoloader": true,
|
||||
"authorative-autoloader": true,
|
||||
"classmap-authoritative": true,
|
||||
"autoloader-suffix": "Files_Versions"
|
||||
},
|
||||
"autoload" : {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"config" : {
|
||||
"vendor-dir": ".",
|
||||
"optimize-autoloader": true,
|
||||
"authorative-autoloader": true,
|
||||
"classmap-authoritative": true,
|
||||
"autoloader-suffix": "LookupServerConnector"
|
||||
},
|
||||
"autoload" : {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"config" : {
|
||||
"vendor-dir": ".",
|
||||
"optimize-autoloader": true,
|
||||
"authorative-autoloader": true,
|
||||
"classmap-authoritative": true,
|
||||
"autoloader-suffix": "OAuth2"
|
||||
},
|
||||
"autoload" : {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"config" : {
|
||||
"vendor-dir": ".",
|
||||
"optimize-autoloader": true,
|
||||
"authorative-autoloader": true,
|
||||
"classmap-authoritative": true,
|
||||
"autoloader-suffix": "Provisioning_API"
|
||||
},
|
||||
"autoload" : {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"config" : {
|
||||
"vendor-dir": ".",
|
||||
"optimize-autoloader": true,
|
||||
"authorative-autoloader": true,
|
||||
"classmap-authoritative": true,
|
||||
"autoloader-suffix": "ShareByMail"
|
||||
},
|
||||
"autoload" : {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"config" : {
|
||||
"vendor-dir": ".",
|
||||
"optimize-autoloader": true,
|
||||
"authorative-autoloader": true,
|
||||
"classmap-authoritative": true,
|
||||
"autoloader-suffix": "SystemTags"
|
||||
},
|
||||
"autoload" : {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"config" : {
|
||||
"vendor-dir": ".",
|
||||
"optimize-autoloader": true,
|
||||
"authorative-autoloader": true,
|
||||
"classmap-authoritative": true,
|
||||
"autoloader-suffix": "Testing"
|
||||
},
|
||||
"autoload" : {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"config" : {
|
||||
"vendor-dir": ".",
|
||||
"optimize-autoloader": true,
|
||||
"authorative-autoloader": true,
|
||||
"classmap-authoritative": true,
|
||||
"autoloader-suffix": "TwoFactorBackupCodes"
|
||||
},
|
||||
"autoload" : {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"config" : {
|
||||
"vendor-dir": ".",
|
||||
"optimize-autoloader": true,
|
||||
"authorative-autoloader": true,
|
||||
"classmap-authoritative": true,
|
||||
"autoloader-suffix": "UpdateNotification"
|
||||
},
|
||||
"autoload" : {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"config" : {
|
||||
"vendor-dir": ".",
|
||||
"optimize-autoloader": true,
|
||||
"authorative-autoloader": true,
|
||||
"classmap-authoritative": true,
|
||||
"autoloader-suffix": "User_LDAP"
|
||||
},
|
||||
"autoload" : {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue