Skip to content

Commit 323f112

Browse files
committed
Build OC\Core\Application when running occ or cron to register listeners correctly
Signed-off-by: Côme Chilliet <[email protected]> (cherry picked from commit 63d7e7c)
1 parent 4d4f544 commit 323f112

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/base.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -727,6 +727,8 @@ public static function init() {
727727
// Make sure that the application class is not loaded before the database is setup
728728
if ($systemConfig->getValue("installed", false)) {
729729
OC_App::loadApp('settings');
730+
/* Build core application to make sure that listeners are registered */
731+
self::$server->get(\OC\Core\Application::class);
730732
}
731733

732734
//make sure temporary files are cleaned up

0 commit comments

Comments
 (0)