From 25d4f3230d840d88191f905b2f3767d982c311b6 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Sun, 22 Dec 2019 15:04:39 +0100 Subject: Use the new Events in Flow Signed-off-by: Roeland Jago Douma --- lib/public/WorkflowEngine/IManager.php | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'lib/public/WorkflowEngine/IManager.php') diff --git a/lib/public/WorkflowEngine/IManager.php b/lib/public/WorkflowEngine/IManager.php index bf2335c8a23..c8a7afb3155 100644 --- a/lib/public/WorkflowEngine/IManager.php +++ b/lib/public/WorkflowEngine/IManager.php @@ -35,29 +35,32 @@ interface IManager { const SCOPE_ADMIN = 0; const SCOPE_USER = 1; + /** + * @depreacted Will be removed in NC19. Use the dedicated events in OCP\WorkflowEngine\Events + */ const EVENT_NAME_REG_OPERATION = 'OCP\WorkflowEngine::registerOperations'; const EVENT_NAME_REG_ENTITY = 'OCP\WorkflowEngine::registerEntities'; const EVENT_NAME_REG_CHECK = 'OCP\WorkflowEngine::registerChecks'; /** - * Listen to `\OCP\WorkflowEngine::EVENT_NAME_REG_ENTITY` at the - * EventDispatcher for registering your entities. + * Listen to `OCP\WorkflowEngine\Events\RegisterEntitiesEvent` at the + * IEventDispatcher for registering your entities. * * @since 18.0.0 */ public function registerEntity(IEntity $entity): void; /** - * Listen to `\OCP\WorkflowEngine::EVENT_NAME_REG_OPERATION` at the - * EventDispatcher for registering your operators. + * Listen to `OCP\WorkflowEngine\Events\RegisterOperationsEvent` at the + * IEventDispatcher for registering your operators. * * @since 18.0.0 */ public function registerOperation(IOperation $operator): void; /** - * Listen to `\OCP\WorkflowEngine::EVENT_NAME_REG_CHECK` at the - * EventDispatcher for registering your operators. + * Listen to `OCP\WorkflowEngine\Events\RegisterChecksEvent` at the + * IEventDispatcher for registering your operators. * * @since 18.0.0 */ -- cgit v1.2.3