Allow DI of the workflow manager by the OCP interface
This commit is contained in:
parent
318d68a9a9
commit
da97a69148
|
@ -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;
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue