summaryrefslogtreecommitdiffstats
path: root/lib/public/WorkflowEngine/IEntity.php
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2019-09-09 17:17:39 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2019-09-09 22:56:06 +0200
commitae1cc1d14dda99f62714d5e658e6cb71378aaae2 (patch)
treeef6251a499db11e4b3db7772f4d6ac5a3de6ed15 /lib/public/WorkflowEngine/IEntity.php
parent849d025d093d1c80d3820901d20bf6a664c6af02 (diff)
downloadnextcloud-server-ae1cc1d14dda99f62714d5e658e6cb71378aaae2.tar.gz
nextcloud-server-ae1cc1d14dda99f62714d5e658e6cb71378aaae2.zip
entities equip the RuleMatcher on the events they are aware of
Operations will receive the matcher instance Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'lib/public/WorkflowEngine/IEntity.php')
-rw-r--r--lib/public/WorkflowEngine/IEntity.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/public/WorkflowEngine/IEntity.php b/lib/public/WorkflowEngine/IEntity.php
index 5ac1082a5a3..c08e9072a38 100644
--- a/lib/public/WorkflowEngine/IEntity.php
+++ b/lib/public/WorkflowEngine/IEntity.php
@@ -24,6 +24,8 @@ declare(strict_types=1);
namespace OCP\WorkflowEngine;
+use Symfony\Component\EventDispatcher\GenericEvent;
+
/**
* Interface IEntity
*
@@ -67,4 +69,9 @@ interface IEntity {
*/
public function getEvents(): array;
+ /**
+ * @since 18.0.0
+ */
+ public function prepareRuleMatcher(IRuleMatcher $ruleMatcher, string $eventName, GenericEvent $event): void;
+
}