diff options
Diffstat (limited to 'apps/files/lib/Collaboration/Resources/Listener.php')
-rw-r--r-- | apps/files/lib/Collaboration/Resources/Listener.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/files/lib/Collaboration/Resources/Listener.php b/apps/files/lib/Collaboration/Resources/Listener.php index 5cf84316578..64dd693a4da 100644 --- a/apps/files/lib/Collaboration/Resources/Listener.php +++ b/apps/files/lib/Collaboration/Resources/Listener.php @@ -25,6 +25,7 @@ declare(strict_types=1); */ namespace OCA\Files\Collaboration\Resources; +use OCP\Server; use OCP\Collaboration\Resources\IManager; use Symfony\Component\EventDispatcher\EventDispatcherInterface; @@ -37,9 +38,9 @@ class Listener { public static function shareModification(): void { /** @var IManager $resourceManager */ - $resourceManager = \OC::$server->query(IManager::class); + $resourceManager = Server::get(IManager::class); /** @var ResourceProvider $resourceProvider */ - $resourceProvider = \OC::$server->query(ResourceProvider::class); + $resourceProvider = Server::get(ResourceProvider::class); $resourceManager->invalidateAccessCacheForProvider($resourceProvider); } |