aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/config.sample.php4
-rw-r--r--lib/base.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/config/config.sample.php b/config/config.sample.php
index da87edff575..1578398c72e 100644
--- a/config/config.sample.php
+++ b/config/config.sample.php
@@ -2748,7 +2748,7 @@ $CONFIG = [
* Enable lazy objects feature from PHP 8.4 to be used in the Dependency Injection.
* Should improve performances by avoiding buiding unused objects.
*
- * Defaults to false.
+ * Defaults to true.
*/
-'enable_lazy_objects' => false,
+'enable_lazy_objects' => true,
];
diff --git a/lib/base.php b/lib/base.php
index 5aca4c4818d..c10b04eff33 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -632,7 +632,7 @@ class OC {
}
// Enable lazy loading if activated
- \OC\AppFramework\Utility\SimpleContainer::$useLazyObjects = (bool)self::$config->getValue('enable_lazy_objects');
+ \OC\AppFramework\Utility\SimpleContainer::$useLazyObjects = (bool)self::$config->getValue('enable_lazy_objects', true);
// setup the basic server
self::$server = new \OC\Server(\OC::$WEBROOT, self::$config);