Build OC\Core\Application when running occ or cron to register listeners correctly

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
Côme Chilliet 2022-02-03 16:12:37 +01:00
parent 9e80f6f18a
commit 63d7e7c798
No known key found for this signature in database
GPG key ID: A3E2F658B28C760A

View file

@ -730,6 +730,8 @@ class OC {
// Make sure that the application class is not loaded before the database is setup
if ($systemConfig->getValue("installed", false)) {
OC_App::loadApp('settings');
/* Build core application to make sure that listeners are registered */
self::$server->get(\OC\Core\Application::class);
}
//make sure temporary files are cleaned up