summaryrefslogtreecommitdiffstats
path: root/lib/private/Migration/BackgroundRepair.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Migration/BackgroundRepair.php')
-rw-r--r--lib/private/Migration/BackgroundRepair.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/private/Migration/BackgroundRepair.php b/lib/private/Migration/BackgroundRepair.php
index 62ba3a9554c..a873d23e7b2 100644
--- a/lib/private/Migration/BackgroundRepair.php
+++ b/lib/private/Migration/BackgroundRepair.php
@@ -29,7 +29,7 @@ use OC\Repair;
use OC_App;
use OCP\BackgroundJob\IJobList;
use OCP\ILogger;
-use Symfony\Component\EventDispatcher\EventDispatcher;
+use Symfony\Component\EventDispatcher\EventDispatcherInterface;
/**
* Class BackgroundRepair
@@ -44,12 +44,16 @@ class BackgroundRepair extends TimedJob {
/** @var ILogger */
private $logger;
- /** @var EventDispatcher */
+ /** @var EventDispatcherInterface */
private $dispatcher;
- public function setDispatcher(EventDispatcher $dispatcher) {
+ /**
+ * @param EventDispatcherInterface $dispatcher
+ */
+ public function setDispatcher(EventDispatcherInterface $dispatcher): void {
$this->dispatcher = $dispatcher;
}
+
/**
* run the job, then remove it from the job list
*