aboutsummaryrefslogtreecommitdiffstats
path: root/core/Command/Maintenance/Repair.php
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2022-08-22 15:58:50 +0200
committerCôme Chilliet <come.chilliet@nextcloud.com>2022-08-25 16:13:46 +0200
commit4f260dce6e43ddef835105a1d4dc13f2b8742526 (patch)
treee69cf7ca3be76975519dba86179fc39609efe7f8 /core/Command/Maintenance/Repair.php
parent4ba30d40cfc892bee0ea28486e63c479e1aadd20 (diff)
downloadnextcloud-server-4f260dce6e43ddef835105a1d4dc13f2b8742526.tar.gz
nextcloud-server-4f260dce6e43ddef835105a1d4dc13f2b8742526.zip
Moving to string key for arguments of GenericEvent in Repair
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'core/Command/Maintenance/Repair.php')
-rw-r--r--core/Command/Maintenance/Repair.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/core/Command/Maintenance/Repair.php b/core/Command/Maintenance/Repair.php
index 2c1fda7c8e4..6dac3085ca8 100644
--- a/core/Command/Maintenance/Repair.php
+++ b/core/Command/Maintenance/Repair.php
@@ -122,26 +122,26 @@ class Repair extends Command {
}
switch ($event->getSubject()) {
case '\OC\Repair::startProgress':
- $this->progress->start($event->getArgument(0));
+ $this->progress->start($event->getArgument('max'));
break;
case '\OC\Repair::advance':
- $this->progress->advance($event->getArgument(0));
+ $this->progress->advance($event->getArgument('step'));
break;
case '\OC\Repair::finishProgress':
$this->progress->finish();
$this->output->writeln('');
break;
case '\OC\Repair::step':
- $this->output->writeln(' - ' . $event->getArgument(0));
+ $this->output->writeln(' - ' . $event->getArgument('step'));
break;
case '\OC\Repair::info':
- $this->output->writeln(' - ' . $event->getArgument(0));
+ $this->output->writeln(' - ' . $event->getArgument('message'));
break;
case '\OC\Repair::warning':
- $this->output->writeln(' - WARNING: ' . $event->getArgument(0));
+ $this->output->writeln(' - WARNING: ' . $event->getArgument('message'));
break;
case '\OC\Repair::error':
- $this->output->writeln('<error> - ERROR: ' . $event->getArgument(0) . '</error>');
+ $this->output->writeln('<error> - ERROR: ' . $event->getArgument('message') . '</error>');
break;
}
}