|
|
@@ -80,6 +80,7 @@ use OC\Files\Mount\ObjectHomeMountProvider; |
|
|
|
use OC\Files\Node\HookConnector; |
|
|
|
use OC\Files\Node\LazyRoot; |
|
|
|
use OC\Files\Node\Root; |
|
|
|
use OC\Files\Storage\StorageFactory; |
|
|
|
use OC\Files\View; |
|
|
|
use OC\Http\Client\ClientService; |
|
|
|
use OC\IntegrityCheck\Checker; |
|
|
@@ -135,6 +136,7 @@ use OCP\Federation\ICloudFederationProviderManager; |
|
|
|
use OCP\Federation\ICloudIdManager; |
|
|
|
use OCP\Authentication\LoginCredentials\IStore; |
|
|
|
use OCP\Files\NotFoundException; |
|
|
|
use OCP\Files\Storage\IStorageFactory; |
|
|
|
use OCP\GlobalScale\IConfig; |
|
|
|
use OCP\ICacheFactory; |
|
|
|
use OCP\IDBConnection; |
|
|
@@ -1174,6 +1176,10 @@ class Server extends ServerContainer implements IServerContainer { |
|
|
|
}); |
|
|
|
$this->registerAlias(IContactsStore::class, ContactsStore::class); |
|
|
|
|
|
|
|
$this->registerService(IStorageFactory::class, function() { |
|
|
|
return new StorageFactory(); |
|
|
|
}); |
|
|
|
|
|
|
|
$this->registerAlias(IDashboardManager::class, Dashboard\DashboardManager::class); |
|
|
|
|
|
|
|
$this->connectDispatcher(); |
|
|
@@ -2024,4 +2030,11 @@ class Server extends ServerContainer implements IServerContainer { |
|
|
|
public function getRemoteInstanceFactory() { |
|
|
|
return $this->query(IInstanceFactory::class); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @return IStorageFactory |
|
|
|
*/ |
|
|
|
public function getStorageFactory() { |
|
|
|
return $this->query(IStorageFactory::class); |
|
|
|
} |
|
|
|
} |