diff options
author | Joas Schilling <coding@schilljs.com> | 2016-07-27 11:46:09 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2016-07-27 11:46:09 +0200 |
commit | da97a691485571f8339177b09e24420b6ae7f177 (patch) | |
tree | 5622df1e1aa3c1f34577b44b6aa0637a0699817b /lib/private/AppFramework | |
parent | 318d68a9a95cc710aa30c24a84d78da280327aef (diff) | |
download | nextcloud-server-da97a691485571f8339177b09e24420b6ae7f177.tar.gz nextcloud-server-da97a691485571f8339177b09e24420b6ae7f177.zip |
Allow DI of the workflow manager by the OCP interface
Diffstat (limited to 'lib/private/AppFramework')
-rw-r--r-- | lib/private/AppFramework/DependencyInjection/DIContainer.php | 4 |
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; }); |