diff options
author | Roeland Jago Douma <rullzer@owncloud.com> | 2016-05-02 15:16:20 +0200 |
---|---|---|
committer | Roeland Jago Douma <rullzer@owncloud.com> | 2016-05-02 16:15:40 +0200 |
commit | 354329acf20b15596ef5b7613f2472bd1643b34a (patch) | |
tree | c9ec7d2fa71c9c3dde853315bf58f7dcbc621127 /apps | |
parent | fd844f3eb3bdfe1186c42df382b3de2e02c98cd4 (diff) | |
download | nextcloud-server-354329acf20b15596ef5b7613f2472bd1643b34a.tar.gz nextcloud-server-354329acf20b15596ef5b7613f2472bd1643b34a.zip |
Cleanup Files_Sharing CLASSPATH
* OC\Files\Cache\SharedScanner
* OC\Files\Cache\Shared_Cache
* OC\Files\Cache\Shared_Permissions
* OC\Files\Cache\Shared_Updater
* OC\Files\Cache\Shared_Watcher
* OCA\Files\Share\Maintainer
* OCA\Files\Share\Proxy
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/appinfo/app.php | 7 | ||||
-rw-r--r-- | apps/files_sharing/lib/cache.php | 4 | ||||
-rw-r--r-- | apps/files_sharing/lib/helper.php | 4 | ||||
-rw-r--r-- | apps/files_sharing/lib/maintainer.php | 2 | ||||
-rw-r--r-- | apps/files_sharing/lib/scanner.php | 5 | ||||
-rw-r--r-- | apps/files_sharing/lib/sharedstorage.php | 4 | ||||
-rw-r--r-- | apps/files_sharing/lib/updater.php | 4 |
7 files changed, 11 insertions, 19 deletions
diff --git a/apps/files_sharing/appinfo/app.php b/apps/files_sharing/appinfo/app.php index e0cbfd7f5ba..da573d11ec5 100644 --- a/apps/files_sharing/appinfo/app.php +++ b/apps/files_sharing/appinfo/app.php @@ -33,13 +33,6 @@ $l = \OC::$server->getL10N('files_sharing'); \OC::$CLASSPATH['OC_Share_Backend_File'] = 'files_sharing/lib/share/file.php'; \OC::$CLASSPATH['OC_Share_Backend_Folder'] = 'files_sharing/lib/share/folder.php'; \OC::$CLASSPATH['OC\Files\Storage\Shared'] = 'files_sharing/lib/sharedstorage.php'; -\OC::$CLASSPATH['OC\Files\Cache\SharedScanner'] = 'files_sharing/lib/scanner.php'; -\OC::$CLASSPATH['OC\Files\Cache\Shared_Cache'] = 'files_sharing/lib/cache.php'; -\OC::$CLASSPATH['OC\Files\Cache\Shared_Permissions'] = 'files_sharing/lib/permissions.php'; -\OC::$CLASSPATH['OC\Files\Cache\Shared_Updater'] = 'files_sharing/lib/updater.php'; -\OC::$CLASSPATH['OC\Files\Cache\Shared_Watcher'] = 'files_sharing/lib/watcher.php'; -\OC::$CLASSPATH['OCA\Files\Share\Maintainer'] = 'files_sharing/lib/maintainer.php'; -\OC::$CLASSPATH['OCA\Files\Share\Proxy'] = 'files_sharing/lib/proxy.php'; $application = new Application(); $application->registerMountProviders(); diff --git a/apps/files_sharing/lib/cache.php b/apps/files_sharing/lib/cache.php index 4dcdaa892ad..abd75282579 100644 --- a/apps/files_sharing/lib/cache.php +++ b/apps/files_sharing/lib/cache.php @@ -23,7 +23,7 @@ * */ -namespace OC\Files\Cache; +namespace OCA\Files_Sharing; use OC\Files\Cache\Wrapper\CacheJail; use OCP\Files\Cache\ICacheEntry; @@ -34,7 +34,7 @@ use OCP\Files\Storage\IStorage; * * don't use this class directly if you need to get metadata, use \OC\Files\Filesystem::getFileInfo instead */ -class Shared_Cache extends CacheJail { +class Cache extends CacheJail { /** * @var \OC\Files\Storage\Shared */ diff --git a/apps/files_sharing/lib/helper.php b/apps/files_sharing/lib/helper.php index 8dad84eca49..500d82cb2d2 100644 --- a/apps/files_sharing/lib/helper.php +++ b/apps/files_sharing/lib/helper.php @@ -36,9 +36,9 @@ use OCP\User; class Helper { public static function registerHooks() { - \OCP\Util::connectHook('OC_Filesystem', 'post_rename', '\OC\Files\Cache\Shared_Updater', 'renameHook'); + \OCP\Util::connectHook('OC_Filesystem', 'post_rename', '\OCA\Files_Sharing\Updater', 'renameHook'); \OCP\Util::connectHook('OC_Filesystem', 'post_delete', '\OCA\Files_Sharing\Hooks', 'unshareChildren'); - \OCP\Util::connectHook('OC_Appconfig', 'post_set_value', '\OCA\Files\Share\Maintainer', 'configChangeHook'); + \OCP\Util::connectHook('OC_Appconfig', 'post_set_value', '\OCA\Files_Sharing\Maintainer', 'configChangeHook'); \OCP\Util::connectHook('OC_User', 'post_deleteUser', '\OCA\Files_Sharing\Hooks', 'deleteUser'); } diff --git a/apps/files_sharing/lib/maintainer.php b/apps/files_sharing/lib/maintainer.php index a728f6bbb67..1d06a34bd0c 100644 --- a/apps/files_sharing/lib/maintainer.php +++ b/apps/files_sharing/lib/maintainer.php @@ -20,7 +20,7 @@ * */ -namespace OCA\Files\Share; +namespace OCA\Files_Sharing; /** * Maintains stuff around the sharing functionality diff --git a/apps/files_sharing/lib/scanner.php b/apps/files_sharing/lib/scanner.php index 2e951423aa2..215c0a7b6ae 100644 --- a/apps/files_sharing/lib/scanner.php +++ b/apps/files_sharing/lib/scanner.php @@ -21,15 +21,14 @@ * */ -namespace OC\Files\Cache; +namespace OCA\Files_Sharing; use OC\Files\ObjectStore\NoopScanner; -use OC\Files\Storage\Shared; /** * Scanner for SharedStorage */ -class SharedScanner extends Scanner { +class Scanner extends \OC\Files\Cache\Scanner { private $sourceScanner; /** diff --git a/apps/files_sharing/lib/sharedstorage.php b/apps/files_sharing/lib/sharedstorage.php index 1a040364f11..ce214822aa7 100644 --- a/apps/files_sharing/lib/sharedstorage.php +++ b/apps/files_sharing/lib/sharedstorage.php @@ -318,14 +318,14 @@ class Shared extends \OC\Files\Storage\Wrapper\Jail implements ISharedStorage { if (!$storage) { $storage = $this; } - return new \OC\Files\Cache\Shared_Cache($storage, $this->sourceStorage, $this->sourceRootInfo); + return new \OCA\Files_Sharing\Cache($storage, $this->sourceStorage, $this->sourceRootInfo); } public function getScanner($path = '', $storage = null) { if (!$storage) { $storage = $this; } - return new \OC\Files\Cache\SharedScanner($storage); + return new \OCA\Files_Sharing\Scanner($storage); } public function getPropagator($storage = null) { diff --git a/apps/files_sharing/lib/updater.php b/apps/files_sharing/lib/updater.php index dc47009c14b..02c349e94b6 100644 --- a/apps/files_sharing/lib/updater.php +++ b/apps/files_sharing/lib/updater.php @@ -25,9 +25,9 @@ * */ -namespace OC\Files\Cache; +namespace OCA\Files_Sharing; -class Shared_Updater { +class Updater { /** * @param array $params |