diff options
author | Matthias <ilovemilk@wusa.io> | 2020-03-31 20:15:30 +0300 |
---|---|---|
committer | Matthias <ilovemilk@wusa.io> | 2020-03-31 20:15:30 +0300 |
commit | 9bc1a9180af141ed6349344ce2fd00a7b2ddefe7 (patch) | |
tree | 72f5bd77b3e024306d2a7b13fd99fcbfc38fa037 /lib/AppInfo | |
parent | f5dc1c05f0907a282bd91db89a460d23b70a5c99 (diff) |
remove storage wrapper
Diffstat (limited to 'lib/AppInfo')
-rw-r--r-- | lib/AppInfo/Application.php | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/lib/AppInfo/Application.php b/lib/AppInfo/Application.php index 287c7f2..a07ee35 100644 --- a/lib/AppInfo/Application.php +++ b/lib/AppInfo/Application.php @@ -185,7 +185,6 @@ class Application extends App $sequenceAnalyzer = $this->getContainer()->query(SequenceAnalyzer::class); $event->getServer()->addPlugin(new RequestPlugin($logger, $config, $userSession, $session, $service, $notifications, $classifier, $sequenceAnalyzer)); }); - //Util::connectHook('OC_Filesystem', 'preSetup', $this, 'addStorageWrapper'); Util::connectHook('OC_Filesystem', 'post_create', FilesHooks::class, 'onFileCreate'); Util::connectHook('OC_Filesystem', 'post_update', FilesHooks::class, 'onFileUpdate'); Util::connectHook('OC_Filesystem', 'post_rename', FilesHooks::class, 'onFileRename'); @@ -196,38 +195,6 @@ class Application extends App $this->registerNotificationNotifier(); } - /** - * @internal - */ - public function addStorageWrapper() - { - Filesystem::addStorageWrapper(self::APP_ID, [$this, 'addStorageWrapperCallback'], -10); - } - - /** - * @internal - * - * @param string $mountPoint - * @param IStorage $storage - * - * @return StorageWrapper|IStorage - */ - public function addStorageWrapperCallback($mountPoint, IStorage $storage) - { - if (!\OC::$CLI && !$storage->instanceOfStorage('OCA\Files_Sharing\SharedStorage')) { - /** @var Monitor $monitor */ - $monitor = $this->getContainer()->query(Monitor::class); - - return new StorageWrapper([ - 'storage' => $storage, - 'mountPoint' => $mountPoint, - 'monitor' => $monitor, - ]); - } - - return $storage; - } - protected function registerNotificationNotifier() { $this->getContainer()->getServer()->getNotificationManager()->registerNotifierService(Notifier::class); |