diff options
author | Robin Appelman <robin@icewind.nl> | 2022-03-24 15:47:50 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2022-03-24 17:36:53 +0100 |
commit | b7a7425fbd6eb9dc95b364ca41b49be9269b13dc (patch) | |
tree | db5c334d35b646f1ab15a6e552913ddf9d24b825 /lib/private/Files/SetupManagerFactory.php | |
parent | 63ad99ba4ad6e4365bbaa0bd500cd870bd853201 (diff) | |
download | nextcloud-server-b7a7425fbd6eb9dc95b364ca41b49be9269b13dc.tar.gz nextcloud-server-b7a7425fbd6eb9dc95b364ca41b49be9269b13dc.zip |
make mount cache duration configurable
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Files/SetupManagerFactory.php')
-rw-r--r-- | lib/private/Files/SetupManagerFactory.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/private/Files/SetupManagerFactory.php b/lib/private/Files/SetupManagerFactory.php index d361d42aad9..1d9efbd411f 100644 --- a/lib/private/Files/SetupManagerFactory.php +++ b/lib/private/Files/SetupManagerFactory.php @@ -29,6 +29,7 @@ use OCP\Files\Config\IMountProviderCollection; use OCP\Files\Config\IUserMountCache; use OCP\Files\Mount\IMountManager; use OCP\ICacheFactory; +use OCP\IConfig; use OCP\IUserManager; use OCP\IUserSession; use OCP\Lockdown\ILockdownManager; @@ -45,6 +46,7 @@ class SetupManagerFactory { private ?SetupManager $setupManager; private ICacheFactory $cacheFactory; private LoggerInterface $logger; + private IConfig $config; public function __construct( IEventLogger $eventLogger, @@ -55,7 +57,8 @@ class SetupManagerFactory { ILockdownManager $lockdownManager, IUserSession $userSession, ICacheFactory $cacheFactory, - LoggerInterface $logger + LoggerInterface $logger, + IConfig $config ) { $this->eventLogger = $eventLogger; $this->mountProviderCollection = $mountProviderCollection; @@ -66,6 +69,7 @@ class SetupManagerFactory { $this->userSession = $userSession; $this->cacheFactory = $cacheFactory; $this->logger = $logger; + $this->config = $config; $this->setupManager = null; } @@ -81,7 +85,8 @@ class SetupManagerFactory { $this->lockdownManager, $this->userSession, $this->cacheFactory, - $this->logger + $this->logger, + $this->config ); } return $this->setupManager; |