From 416c824c7440aa8a28ff3d879f1df9aac252bb0e Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Thu, 12 Jan 2023 11:49:28 +0100 Subject: [PATCH] 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 --- lib/private/legacy/OC_App.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/private/legacy/OC_App.php b/lib/private/legacy/OC_App.php index a7887d2bed7..3c255e91661 100644 --- a/lib/private/legacy/OC_App.php +++ b/lib/private/legacy/OC_App.php @@ -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 -- 2.39.5