Skip to content

Commit 979f652

Browse files
committed
Build OC\Core\Application when running occ to register listeners correctly
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
1 parent eb34073 commit 979f652

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/private/Console/Application.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
*/
3131
namespace OC\Console;
3232

33+
use OC\Core\Application as CoreApplication;
3334
use OC\MemoryInfo;
3435
use OC\NeedsUpdateException;
3536
use OC_App;
@@ -69,6 +70,8 @@ public function __construct(IConfig $config,
6970
$this->request = $request;
7071
$this->logger = $logger;
7172
$this->memoryInfo = $memoryInfo;
73+
/* Build core application to make sure that listeners are registered */
74+
\OC::$server->query(CoreApplication::class);
7275
}
7376

7477
/**

0 commit comments

Comments
 (0)