From da97a691485571f8339177b09e24420b6ae7f177 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 27 Jul 2016 11:46:09 +0200 Subject: [PATCH] Allow DI of the workflow manager by the OCP interface --- lib/private/AppFramework/DependencyInjection/DIContainer.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/private/AppFramework/DependencyInjection/DIContainer.php b/lib/private/AppFramework/DependencyInjection/DIContainer.php index ab360bf23956f..66ca59d26e2da 100644 --- a/lib/private/AppFramework/DependencyInjection/DIContainer.php +++ b/lib/private/AppFramework/DependencyInjection/DIContainer.php @@ -289,6 +289,10 @@ public function __construct($appName, $urlParams = array()){ return $this->getServer()->getEventDispatcher(); }); + $this->registerService('OCP\WorkflowEngine\IManager', function ($c) { + return $c->query('OCA\WorkflowEngine\Manager'); + }); + $this->registerService('OCP\\AppFramework\\IAppContainer', function ($c) { return $c; });