]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix: register DI alias for IFileAccess 45476/head
authorRobin Appelman <robin@icewind.nl>
Wed, 22 May 2024 15:11:29 +0000 (17:11 +0200)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Thu, 23 May 2024 12:47:14 +0000 (12:47 +0000)
Signed-off-by: Robin Appelman <robin@icewind.nl>
lib/private/Server.php

index 5d897c322d58b1e507d2c78c8897093e7f251dc5..4529d908835a5c09e0906af0f273715c5933102a 100644 (file)
@@ -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();