Allow DI of the workflow manager by the OCP interface
This commit is contained in:
parent
ec8ec17cf4
commit
2a4a1278fa
|
@ -289,6 +289,10 @@ class DIContainer extends SimpleContainer implements IAppContainer {
|
||||||
return $this->getServer()->getEventDispatcher();
|
return $this->getServer()->getEventDispatcher();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$this->registerService('OCP\WorkflowEngine\IManager', function ($c) {
|
||||||
|
return $c->query('OCA\WorkflowEngine\Manager');
|
||||||
|
});
|
||||||
|
|
||||||
$this->registerService('OCP\\AppFramework\\IAppContainer', function ($c) {
|
$this->registerService('OCP\\AppFramework\\IAppContainer', function ($c) {
|
||||||
return $c;
|
return $c;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue