mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
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:
parent
0e5fcb49d4
commit
416c824c74
1 changed files with 0 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue