From a2a7150d6d87a499e6745651edb27c9795939d0c Mon Sep 17 00:00:00 2001 From: Côme Chilliet Date: Mon, 22 Aug 2022 17:59:26 +0200 Subject: Migrate Repair events to OCP\EventDispatcher\Event MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- lib/private/DB/Connection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/private/DB/Connection.php') diff --git a/lib/private/DB/Connection.php b/lib/private/DB/Connection.php index 22c2bbbb793..73e0f4b4ac2 100644 --- a/lib/private/DB/Connection.php +++ b/lib/private/DB/Connection.php @@ -588,7 +588,7 @@ class Connection extends \Doctrine\DBAL\Connection { $random = \OC::$server->getSecureRandom(); $platform = $this->getDatabasePlatform(); $config = \OC::$server->getConfig(); - $dispatcher = \OC::$server->getEventDispatcher(); + $dispatcher = \OC::$server->get(\OCP\EventDispatcher\IEventDispatcher::class); if ($platform instanceof SqlitePlatform) { return new SQLiteMigrator($this, $config, $dispatcher); } elseif ($platform instanceof OraclePlatform) { -- cgit v1.2.3