summaryrefslogtreecommitdiffstats
path: root/lib/private/DB
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2019-05-28 19:46:36 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2019-06-25 10:02:27 +0200
commit3174012adf3fde4de74efa12cfa7e480b874b295 (patch)
treebc58b99dc45b5adcdeaf30269e9a6eab2c853773 /lib/private/DB
parent817bdc47c804ae8511ad3423eae216f6ccdee6c6 (diff)
downloadnextcloud-server-3174012adf3fde4de74efa12cfa7e480b874b295.tar.gz
nextcloud-server-3174012adf3fde4de74efa12cfa7e480b874b295.zip
Add event dispatcher to OCP
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/private/DB')
-rw-r--r--lib/private/DB/Migrator.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/private/DB/Migrator.php b/lib/private/DB/Migrator.php
index 603f9259d6e..a853ab1ea1b 100644
--- a/lib/private/DB/Migrator.php
+++ b/lib/private/DB/Migrator.php
@@ -39,7 +39,7 @@ use Doctrine\DBAL\Types\StringType;
use Doctrine\DBAL\Types\Type;
use OCP\IConfig;
use OCP\Security\ISecureRandom;
-use Symfony\Component\EventDispatcher\EventDispatcher;
+use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\EventDispatcher\GenericEvent;
class Migrator {
@@ -53,7 +53,7 @@ class Migrator {
/** @var IConfig */
protected $config;
- /** @var EventDispatcher */
+ /** @var EventDispatcherInterface */
private $dispatcher;
/** @var bool */
@@ -63,12 +63,12 @@ class Migrator {
* @param \Doctrine\DBAL\Connection|Connection $connection
* @param ISecureRandom $random
* @param IConfig $config
- * @param EventDispatcher $dispatcher
+ * @param EventDispatcherInterface $dispatcher
*/
public function __construct(\Doctrine\DBAL\Connection $connection,
ISecureRandom $random,
IConfig $config,
- EventDispatcher $dispatcher = null) {
+ EventDispatcherInterface $dispatcher = null) {
$this->connection = $connection;
$this->random = $random;
$this->config = $config;