Directly use the class to get the service

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2020-04-17 11:20:26 +02:00 committed by Roeland Jago Douma
parent 6332d7c0b3
commit 685d7b0637
No known key found for this signature in database
GPG key ID: F941078878347C0C

View file

@ -114,7 +114,7 @@ class Application extends App {
return new \OCA\Files_Sharing\External\MountProvider(
$server->getDatabaseConnection(),
function () use ($c) {
return $c->query('ExternalManager');
return $c->query(Manager::class);
},
$server->getCloudIdManager()
);