aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/legacy/OC_App.php
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2023-01-12 11:49:28 +0100
committerSimon L. (Rebase PR Action) <szaimen@e.mail.de>2023-03-16 12:02:09 +0000
commit416c824c7440aa8a28ff3d879f1df9aac252bb0e (patch)
tree4c4f513b1343cd7b66dbbd4b9df4068ef0561881 /lib/private/legacy/OC_App.php
parent0e5fcb49d4b90d0ec57cbff7ff9b2c4810583b37 (diff)
downloadnextcloud-server-416c824c7440aa8a28ff3d879f1df9aac252bb0e.tar.gz
nextcloud-server-416c824c7440aa8a28ff3d879f1df9aac252bb0e.zip
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>
Diffstat (limited to 'lib/private/legacy/OC_App.php')
-rw-r--r--lib/private/legacy/OC_App.php2
1 files changed, 0 insertions, 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