Remove not needed temp manager

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2019-12-18 20:35:47 +01:00
parent c44fd46c8c
commit 20ce9e89c1
No known key found for this signature in database
GPG Key ID: F941078878347C0C
3 changed files with 1 additions and 17 deletions

View File

@ -71,28 +71,15 @@ class Checker {
private $cache; private $cache;
/** @var IAppManager */ /** @var IAppManager */
private $appManager; private $appManager;
/** @var ITempManager */
private $tempManager;
/** @var IMimeTypeDetector */ /** @var IMimeTypeDetector */
private $mimeTypeDetector; private $mimeTypeDetector;
/**
* @param EnvironmentHelper $environmentHelper
* @param FileAccessHelper $fileAccessHelper
* @param AppLocator $appLocator
* @param IConfig $config
* @param ICacheFactory $cacheFactory
* @param IAppManager $appManager
* @param ITempManager $tempManager
* @param IMimeTypeDetector $mimeTypeDetector
*/
public function __construct(EnvironmentHelper $environmentHelper, public function __construct(EnvironmentHelper $environmentHelper,
FileAccessHelper $fileAccessHelper, FileAccessHelper $fileAccessHelper,
AppLocator $appLocator, AppLocator $appLocator,
IConfig $config = null, IConfig $config = null,
ICacheFactory $cacheFactory, ICacheFactory $cacheFactory,
IAppManager $appManager = null, IAppManager $appManager = null,
ITempManager $tempManager,
IMimeTypeDetector $mimeTypeDetector) { IMimeTypeDetector $mimeTypeDetector) {
$this->environmentHelper = $environmentHelper; $this->environmentHelper = $environmentHelper;
$this->fileAccessHelper = $fileAccessHelper; $this->fileAccessHelper = $fileAccessHelper;
@ -100,7 +87,6 @@ class Checker {
$this->config = $config; $this->config = $config;
$this->cache = $cacheFactory->createDistributed(self::CACHE_KEY); $this->cache = $cacheFactory->createDistributed(self::CACHE_KEY);
$this->appManager = $appManager; $this->appManager = $appManager;
$this->tempManager = $tempManager;
$this->mimeTypeDetector = $mimeTypeDetector; $this->mimeTypeDetector = $mimeTypeDetector;
} }

View File

@ -899,7 +899,6 @@ class Server extends ServerContainer implements IServerContainer {
$config, $config,
$c->getMemCacheFactory(), $c->getMemCacheFactory(),
$appManager, $appManager,
$c->getTempManager(),
$c->getMimeTypeDetector() $c->getMimeTypeDetector()
); );
}); });

View File

@ -77,7 +77,6 @@ class CheckerTest extends TestCase {
$this->config, $this->config,
$this->cacheFactory, $this->cacheFactory,
$this->appManager, $this->appManager,
\OC::$server->getTempManager(),
$this->mimeTypeDetector $this->mimeTypeDetector
); );
} }