mirror of
https://github.com/nextcloud/server.git
synced 2026-02-18 18:28:50 -05:00
fix: register DI alias for IFileAccess
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
221883fa5b
commit
8fca20dc59
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
@ -195,6 +196,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;
|
||||
|
|
@ -450,6 +452,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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue