mirror of
https://github.com/nextcloud/server.git
synced 2026-02-27 18:37:17 +01:00
fix: Switch lazy object to enabled by default on PHP 8.4
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
@@ -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,
|
||||
];
|
||||
|
||||
@@ -619,7 +619,7 @@ class OC {
|
||||
$loaderEnd = microtime(true);
|
||||
|
||||
// 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);
|
||||
|
||||
Reference in New Issue
Block a user