Merge pull request #597 from nextcloud/fix-di-of-workflow-manager

Allow DI of the workflow manager by the OCP interface
This commit is contained in:
Joas Schilling 2016-07-27 13:53:40 +02:00 committed by GitHub
commit 458f0da373

View 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;
});