summaryrefslogtreecommitdiffstats
path: root/apps/files_versions/appinfo/app.php
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2014-07-24 16:49:38 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2014-07-30 15:14:01 +0200
commit1a797f90bbf55f9602f26f3853f7459076ff6291 (patch)
tree8bbdfc8e704900032b4aba19f75be7365069aa77 /apps/files_versions/appinfo/app.php
parentdba2574c528b959f35ae47eeb5e6f0fbfdcb3b08 (diff)
downloadnextcloud-server-1a797f90bbf55f9602f26f3853f7459076ff6291.tar.gz
nextcloud-server-1a797f90bbf55f9602f26f3853f7459076ff6291.zip
add unit test for rename and copy operation
Diffstat (limited to 'apps/files_versions/appinfo/app.php')
-rw-r--r--apps/files_versions/appinfo/app.php8
1 files changed, 1 insertions, 7 deletions
diff --git a/apps/files_versions/appinfo/app.php b/apps/files_versions/appinfo/app.php
index 6020d401ef6..8c517d4d0ff 100644
--- a/apps/files_versions/appinfo/app.php
+++ b/apps/files_versions/appinfo/app.php
@@ -8,10 +8,4 @@ OC::$CLASSPATH['OCA\Files_Versions\Capabilities'] = 'files_versions/lib/capabili
OCP\Util::addscript('files_versions', 'versions');
OCP\Util::addStyle('files_versions', 'versions');
-// Listen to write signals
-OCP\Util::connectHook('OC_Filesystem', 'write', "OCA\Files_Versions\Hooks", "write_hook");
-// Listen to delete and rename signals
-OCP\Util::connectHook('OC_Filesystem', 'post_delete', "OCA\Files_Versions\Hooks", "remove_hook");
-OCP\Util::connectHook('OC_Filesystem', 'delete', "OCA\Files_Versions\Hooks", "pre_remove_hook");
-OCP\Util::connectHook('OC_Filesystem', 'rename', "OCA\Files_Versions\Hooks", "rename_hook");
-OCP\Util::connectHook('OC_Filesystem', 'copy', "OCA\Files_Versions\Hooks", "copy_hook");
+\OCA\Files_Versions\Hooks::connectHooks();