summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2019-03-22 10:29:36 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2019-03-22 10:29:36 +0100
commit3ecdf743bb655d77f223b026841356e8fec603a4 (patch)
treef50c74728c85bf4210f10060dc83dfd3f15119da /lib
parentb1b2378758a5e855143286a9126b4b92b81a3afc (diff)
downloadnextcloud-server-3ecdf743bb655d77f223b026841356e8fec603a4.tar.gz
nextcloud-server-3ecdf743bb655d77f223b026841356e8fec603a4.zip
Properly inject EventDispatched in BackgroundRepair
Else it will just be null when called Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Migration/BackgroundRepair.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/private/Migration/BackgroundRepair.php b/lib/private/Migration/BackgroundRepair.php
index a873d23e7b2..7ef90301cf3 100644
--- a/lib/private/Migration/BackgroundRepair.php
+++ b/lib/private/Migration/BackgroundRepair.php
@@ -47,10 +47,7 @@ class BackgroundRepair extends TimedJob {
/** @var EventDispatcherInterface */
private $dispatcher;
- /**
- * @param EventDispatcherInterface $dispatcher
- */
- public function setDispatcher(EventDispatcherInterface $dispatcher): void {
+ public function __construct(EventDispatcherInterface $dispatcher) {
$this->dispatcher = $dispatcher;
}