]> source.dussan.org Git - nextcloud-server.git/commitdiff
perf(autoloader): Drop legacy class autoloader 36114/head
authorChristoph Wurst <christoph@winzerhof-wurst.at>
Thu, 12 Jan 2023 10:49:28 +0000 (11:49 +0100)
committerSimon L. (Rebase PR Action) <szaimen@e.mail.de>
Thu, 16 Mar 2023 12:02:09 +0000 (12:02 +0000)
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>
lib/private/legacy/OC_App.php

index a7887d2bed7f48ec517c88e5ae46574fee06792a..3c255e916617822e3233e6e6eb60c922a4242d05 100644 (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