Browse Source
adjust to server changes
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
pull/2487/head
Arthur Schiwon
6 years ago
No known key found for this signature in database
GPG Key ID: 7424F1874854DF23
1 changed files with
2 additions and
2 deletions
-
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); |
|
|
|
|