]> source.dussan.org Git - nextcloud-server.git/commitdiff
Allow DI of the workflow manager by the OCP interface 597/head
authorJoas Schilling <coding@schilljs.com>
Wed, 27 Jul 2016 09:46:09 +0000 (11:46 +0200)
committerJoas Schilling <coding@schilljs.com>
Wed, 27 Jul 2016 09:46:09 +0000 (11:46 +0200)
lib/private/AppFramework/DependencyInjection/DIContainer.php

index ab360bf23956ffdaa2d773cebfba6c4c375b6ab4..66ca59d26e2daef7ceb1699dc7e2551652536002 100644 (file)
@@ -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;
                });