diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2016-05-17 10:44:49 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2016-05-25 14:59:59 +0200 |
commit | b72706b450dd483bc25b0fd95266a8ac6c635ae6 (patch) | |
tree | 103e3d3bf1996e295b6f59f583d68dbf5671af99 | |
parent | 3a716ae91c20f48737ad5f9192b20967252e74ec (diff) | |
download | nextcloud-server-b72706b450dd483bc25b0fd95266a8ac6c635ae6.tar.gz nextcloud-server-b72706b450dd483bc25b0fd95266a8ac6c635ae6.zip |
Move background job to PSR-4
-rw-r--r-- | apps/files_sharing/appinfo/info.xml | 4 | ||||
-rw-r--r-- | apps/files_sharing/lib/DeleteOrphanedSharesJob.php (renamed from apps/files_sharing/lib/deleteorphanedsharesjob.php) | 2 | ||||
-rw-r--r-- | lib/private/Repair/DropOldJobs.php | 2 |
3 files changed, 5 insertions, 3 deletions
diff --git a/apps/files_sharing/appinfo/info.xml b/apps/files_sharing/appinfo/info.xml index f6e3053961f..c1f98aa94ac 100644 --- a/apps/files_sharing/appinfo/info.xml +++ b/apps/files_sharing/appinfo/info.xml @@ -24,7 +24,7 @@ Turning the feature off removes shared files and folders on the server for all s <namespace>Files_Sharing</namespace> <background-jobs> - <job>OCA\Files_sharing\Lib\DeleteOrphanedSharesJob</job> - <job>OCA\Files_sharing\ExpireSharesJob</job> + <job>OCA\Files_Sharing\DeleteOrphanedSharesJob</job> + <job>OCA\Files_Sharing\ExpireSharesJob</job> </background-jobs> </info> diff --git a/apps/files_sharing/lib/deleteorphanedsharesjob.php b/apps/files_sharing/lib/DeleteOrphanedSharesJob.php index 72bf6b222e7..2678d46661d 100644 --- a/apps/files_sharing/lib/deleteorphanedsharesjob.php +++ b/apps/files_sharing/lib/DeleteOrphanedSharesJob.php @@ -20,7 +20,7 @@ * */ -namespace OCA\Files_sharing\Lib; +namespace OCA\Files_Sharing; use OC\BackgroundJob\TimedJob; diff --git a/lib/private/Repair/DropOldJobs.php b/lib/private/Repair/DropOldJobs.php index 489b89d0869..c040aa03961 100644 --- a/lib/private/Repair/DropOldJobs.php +++ b/lib/private/Repair/DropOldJobs.php @@ -73,6 +73,8 @@ class DropOldJobs implements IRepairStep { ['class' => 'OC_Cache_FileGlobalGC', 'arguments' => null], ['class' => 'OC\Cache\FileGlobalGC', 'arguments' => null], ['class' => 'OCA\Files\BackgroundJob\DeleteOrphanedTagsJob', 'arguments' => null], + ['class' => 'OCA\Files_sharing\Lib\DeleteOrphanedSharesJob', 'arguments' => null], + ['class' => 'OCA\Files_sharing\ExpireSharesJob', 'arguments' => null], ]; } |