Skip to content

Commit

Permalink
Build OC\Core\Application when running occ or cron to register listen…
Browse files Browse the repository at this point in the history
…ers correctly

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
  • Loading branch information
come-nc committed Feb 28, 2022
1 parent 9e80f6f commit 63d7e7c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/base.php
Original file line number Diff line number Diff line change
Expand Up @@ -730,6 +730,8 @@ public static function init() {
// 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
Expand Down

0 comments on commit 63d7e7c

Please sign in to comment.