From ca1dd57fc0e385ee948cba7e51e89e2fdfea9086 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 22 May 2024 17:11:29 +0200 Subject: [PATCH] fix: register DI alias for IFileAccess Signed-off-by: Robin Appelman --- lib/private/Server.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/private/Server.php b/lib/private/Server.php index 5d897c322d5..4529d908835 100644 --- a/lib/private/Server.php +++ b/lib/private/Server.php @@ -86,6 +86,7 @@ use OC\Diagnostics\QueryLogger; use OC\Federation\CloudFederationFactory; use OC\Federation\CloudFederationProviderManager; use OC\Federation\CloudIdManager; +use OC\Files\Cache\FileAccess; use OC\Files\Config\MountProviderCollection; use OC\Files\Config\UserMountCache; use OC\Files\Config\UserMountCacheListener; @@ -194,6 +195,7 @@ use OCP\EventDispatcher\IEventDispatcher; use OCP\Federation\ICloudFederationFactory; use OCP\Federation\ICloudFederationProviderManager; use OCP\Federation\ICloudIdManager; +use OCP\Files\Cache\IFileAccess; use OCP\Files\Config\IMountProviderCollection; use OCP\Files\Config\IUserMountCache; use OCP\Files\IMimeTypeDetector; @@ -449,6 +451,7 @@ class Server extends ServerContainer implements IServerContainer { $this->registerService(ISystemTagObjectMapper::class, function (ContainerInterface $c) { return $c->get('SystemTagManagerFactory')->getObjectMapper(); }); + $this->registerAlias(IFileAccess::class, FileAccess::class); $this->registerService('RootFolder', function (ContainerInterface $c) { $manager = \OC\Files\Filesystem::getMountManager(); $view = new View(); -- 2.39.5