Skip to content

Commit

Permalink
manually register the store
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristophWurst committed Nov 8, 2016
1 parent ad1b34c commit dd5dceb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/private/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit dd5dceb

Please sign in to comment.