|
|
|
|
@ -21,12 +21,12 @@ use OC\Files\Storage\Wrapper\Quota;
|
|
|
|
|
use OC\Lockdown\Filesystem\NullStorage;
|
|
|
|
|
use OC\Share\Share;
|
|
|
|
|
use OC\Share20\ShareDisableChecker;
|
|
|
|
|
use OC_App;
|
|
|
|
|
use OC_Hook;
|
|
|
|
|
use OCA\Files_External\Config\ExternalMountPoint;
|
|
|
|
|
use OCA\Files_Sharing\External\Mount;
|
|
|
|
|
use OCA\Files_Sharing\ISharedMountPoint;
|
|
|
|
|
use OCA\Files_Sharing\SharedMount;
|
|
|
|
|
use OCP\App\IAppManager;
|
|
|
|
|
use OCP\Constants;
|
|
|
|
|
use OCP\Diagnostics\IEventLogger;
|
|
|
|
|
use OCP\EventDispatcher\IEventDispatcher;
|
|
|
|
|
@ -81,6 +81,7 @@ class SetupManager {
|
|
|
|
|
private LoggerInterface $logger,
|
|
|
|
|
private IConfig $config,
|
|
|
|
|
private ShareDisableChecker $shareDisableChecker,
|
|
|
|
|
private IAppManager $appManager,
|
|
|
|
|
) {
|
|
|
|
|
$this->cache = $cacheFactory->createDistributed('setupmanager::');
|
|
|
|
|
$this->listeningForProviders = false;
|
|
|
|
|
@ -104,7 +105,7 @@ class SetupManager {
|
|
|
|
|
$this->setupBuiltinWrappersDone = true;
|
|
|
|
|
|
|
|
|
|
// load all filesystem apps before, so no setup-hook gets lost
|
|
|
|
|
OC_App::loadApps(['filesystem']);
|
|
|
|
|
$this->appManager->loadApps(['filesystem']);
|
|
|
|
|
$prevLogging = Filesystem::logWarningWhenAddingStorageWrapper(false);
|
|
|
|
|
|
|
|
|
|
Filesystem::addStorageWrapper('mount_options', function ($mountPoint, IStorage $storage, IMountPoint $mount) {
|
|
|
|
|
|