Move background job to PSR-4

This commit is contained in:
Joas Schilling 2016-05-17 10:44:49 +02:00
parent 3a716ae91c
commit b72706b450
No known key found for this signature in database
GPG Key ID: 70A0B324C41C0946
3 changed files with 5 additions and 3 deletions

View File

@ -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>

View File

@ -20,7 +20,7 @@
*
*/
namespace OCA\Files_sharing\Lib;
namespace OCA\Files_Sharing;
use OC\BackgroundJob\TimedJob;

View File

@ -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],
];
}