mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
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:
parent
9e80f6f18a
commit
63d7e7c798
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue