aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-07-27 13:53:40 +0200
committerGitHub <noreply@github.com>2016-07-27 13:53:40 +0200
commit458f0da373474d5f69a4ef8ac87afdfd05dec546 (patch)
tree5622df1e1aa3c1f34577b44b6aa0637a0699817b
parent318d68a9a95cc710aa30c24a84d78da280327aef (diff)
parentda97a691485571f8339177b09e24420b6ae7f177 (diff)
downloadnextcloud-server-458f0da373474d5f69a4ef8ac87afdfd05dec546.tar.gz
nextcloud-server-458f0da373474d5f69a4ef8ac87afdfd05dec546.zip
Merge pull request #597 from nextcloud/fix-di-of-workflow-manager
Allow DI of the workflow manager by the OCP interface
-rw-r--r--lib/private/AppFramework/DependencyInjection/DIContainer.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/AppFramework/DependencyInjection/DIContainer.php b/lib/private/AppFramework/DependencyInjection/DIContainer.php
index ab360bf2395..66ca59d26e2 100644
--- a/lib/private/AppFramework/DependencyInjection/DIContainer.php
+++ b/lib/private/AppFramework/DependencyInjection/DIContainer.php
@@ -289,6 +289,10 @@ class DIContainer extends SimpleContainer implements IAppContainer {
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;
});