summaryrefslogtreecommitdiffstats
path: root/lib/private/Repair/OldGroupMembershipShares.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Repair/OldGroupMembershipShares.php')
-rw-r--r--lib/private/Repair/OldGroupMembershipShares.php11
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/private/Repair/OldGroupMembershipShares.php b/lib/private/Repair/OldGroupMembershipShares.php
index 627645b116d..e982dd81f3b 100644
--- a/lib/private/Repair/OldGroupMembershipShares.php
+++ b/lib/private/Repair/OldGroupMembershipShares.php
@@ -21,14 +21,13 @@
namespace OC\Repair;
-
-use OC\Hooks\BasicEmitter;
-use OC\RepairStep;
use OCP\IDBConnection;
use OCP\IGroupManager;
+use OCP\Migration\IOutput;
+use OCP\Migration\IRepairStep;
use OCP\Share;
-class OldGroupMembershipShares extends BasicEmitter implements RepairStep {
+class OldGroupMembershipShares implements IRepairStep {
/** @var \OCP\IDBConnection */
protected $connection;
@@ -65,7 +64,7 @@ class OldGroupMembershipShares extends BasicEmitter implements RepairStep {
*
* @throws \Exception in case of failure
*/
- public function run() {
+ public function run(IOutput $output) {
$deletedEntries = 0;
$query = $this->connection->getQueryBuilder();
@@ -92,7 +91,7 @@ class OldGroupMembershipShares extends BasicEmitter implements RepairStep {
$result->closeCursor();
if ($deletedEntries) {
- $this->emit('\OC\Repair', 'info', array('Removed ' . $deletedEntries . ' shares where user is not a member of the group anymore'));
+ $output->info('Removed ' . $deletedEntries . ' shares where user is not a member of the group anymore');
}
}