From: Robin Appelman Date: Wed, 22 May 2024 15:11:29 +0000 (+0200) Subject: fix: register DI alias for IFileAccess X-Git-Tag: v29.0.3rc1~43^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ca1dd57fc0e385ee948cba7e51e89e2fdfea9086;p=nextcloud-server.git fix: register DI alias for IFileAccess Signed-off-by: Robin Appelman --- 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();