diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2019-12-16 15:08:06 +0300 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2019-12-16 15:08:06 +0300 |
commit | 2a87d67b7bfa9a7eb6d90607d36f2a59f16a2fc1 (patch) | |
tree | ca6b9ece50af3b85aa14dbc9d6e66469f15449e7 /lib/Flow | |
parent | ecd3ce8d92e726dbfe9ddbd504f53f6c2d3c3d47 (diff) |
adjust to server changes
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'lib/Flow')
-rw-r--r-- | lib/Flow/Operation.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Flow/Operation.php b/lib/Flow/Operation.php index 381c21170..5ed95dba1 100644 --- a/lib/Flow/Operation.php +++ b/lib/Flow/Operation.php @@ -32,6 +32,7 @@ use OCA\Talk\Manager as TalkManager; use OCA\Talk\Participant; use OCA\Talk\Room; use OCP\EventDispatcher\Event; +use OCP\EventDispatcher\IEventDispatcher; use OCP\IL10N; use OCP\IURLGenerator; use OCP\IUser; @@ -43,7 +44,6 @@ use OCP\WorkflowEngine\IManager as FlowManager; use OCP\WorkflowEngine\IOperation; use OCP\WorkflowEngine\IRuleMatcher; use Symfony\Component\EventDispatcher\GenericEvent; -use Symfony\Contracts\EventDispatcher\EventDispatcherInterface; use UnexpectedValueException; class Operation implements IOperation { @@ -80,7 +80,7 @@ class Operation implements IOperation { $this->chatManager = $chatManager; } - public static function register(EventDispatcherInterface $dispatcher): void { + public static function register(IEventDispatcher $dispatcher): void { $dispatcher->addListener(FlowManager::EVENT_NAME_REG_OPERATION, function (GenericEvent $event) { $operation = \OC::$server->query(Operation::class); $event->getSubject()->registerOperation($operation); |