Skip to content
Snippets Groups Projects
Unverified Commit 49b095b7 authored by Roeland Jago Douma's avatar Roeland Jago Douma
Browse files

Use proper authorative-autoloader for app autoloaders

parent ce12763a
No related branches found
No related tags found
No related merge requests found
Showing
with 20 additions and 110 deletions
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment