diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-04-08 14:16:21 +0200 |
---|---|---|
committer | Carl Schwan <carl@carlschwan.eu> | 2022-05-10 18:51:12 +0200 |
commit | f945c0cbc6aef461fabf17cea42440ad9b6fea09 (patch) | |
tree | 73bb7d91d3721049f436ecf160f66c640a805a02 /apps/files_external/lib/Lib/Storage | |
parent | 0690646d09430ce363b07bc2cd59283e303314eb (diff) | |
download | nextcloud-server-f945c0cbc6aef461fabf17cea42440ad9b6fea09.tar.gz nextcloud-server-f945c0cbc6aef461fabf17cea42440ad9b6fea09.zip |
Add a public replacement for OC::$server->get
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'apps/files_external/lib/Lib/Storage')
-rw-r--r-- | apps/files_external/lib/Lib/Storage/AmazonS3.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/files_external/lib/Lib/Storage/AmazonS3.php b/apps/files_external/lib/Lib/Storage/AmazonS3.php index cfd78689fa4..d3e9605e5a1 100644 --- a/apps/files_external/lib/Lib/Storage/AmazonS3.php +++ b/apps/files_external/lib/Lib/Storage/AmazonS3.php @@ -53,6 +53,7 @@ use OCP\Files\FileInfo; use OCP\Files\IMimeTypeDetector; use OCP\ICacheFactory; use OCP\IMemcache; +use OCP\Server; class AmazonS3 extends \OC\Files\Storage\Common { use S3ConnectionTrait; @@ -87,9 +88,9 @@ class AmazonS3 extends \OC\Files\Storage\Common { $this->objectCache = new CappedMemoryCache(); $this->directoryCache = new CappedMemoryCache(); $this->filesCache = new CappedMemoryCache(); - $this->mimeDetector = \OC::$server->get(IMimeTypeDetector::class); + $this->mimeDetector = Server::get(IMimeTypeDetector::class); /** @var ICacheFactory $cacheFactory */ - $cacheFactory = \OC::$server->get(ICacheFactory::class); + $cacheFactory = Server::get(ICacheFactory::class); $this->memCache = $cacheFactory->createLocal('s3-external'); } |