From dd5dceb433babeb9cff465e14d30605a7da280eb Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Tue, 8 Nov 2016 09:44:10 +0100 Subject: [PATCH] manually register the store --- lib/private/Server.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/private/Server.php b/lib/private/Server.php index 156b3fd58a802..9bbc071e9b1db 100644 --- a/lib/private/Server.php +++ b/lib/private/Server.php @@ -243,6 +243,12 @@ public function __construct($webRoot, \OC\Config $config) { }); return $groupManager; }); + $this->registerService(Store::class, function(Server $c) { + $session = $c->getSession(); + $tokenProvider = $c->query('OC\Authentication\Token\DefaultTokenProvider'); + $logger = $c->getLogger(); + return new Store($session, $tokenProvider, $logger); + }); $this->registerAlias(IStore::class, Store::class); $this->registerService('OC\Authentication\Token\DefaultTokenMapper', function (Server $c) { $dbConnection = $c->getDatabaseConnection();