diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-02-03 18:12:37 +0300 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-02-28 12:31:52 +0300 |
commit | 63d7e7c798f6a6cbd56642a287673532b991c5ac (patch) | |
tree | be63573098396d10a98f281f7b7f1a7634b052c9 /lib/base.php | |
parent | 9e80f6f18a2247d60438cac64fe52156a79ff93d (diff) |
Build OC\Core\Application when running occ or cron to register listeners correctly
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib/base.php')
-rw-r--r-- | lib/base.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/base.php b/lib/base.php index 3c10f7cb33a..c9f0ca008ba 100644 --- a/lib/base.php +++ b/lib/base.php @@ -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 |