perf(autoloader): Drop legacy class autoloader

The documentation says apps should use PSR-4 to get their classes
loaded. The legacy PSR-0 is still in place and has a negative impact on
performance.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
Christoph Wurst 2023-01-12 11:49:28 +01:00 committed by Simon L. (Rebase PR Action)
parent 0e5fcb49d4
commit 416c824c74

View file

@ -298,8 +298,6 @@ class OC_App {
require_once $path . '/composer/autoload.php';
} else {
\OC::$composerAutoloader->addPsr4($appNamespace . '\\', $path . '/lib/', true);
// Register on legacy autoloader
\OC::$loader->addValidRoot($path);
}
// Register Test namespace only when testing