mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 10:10:49 -04:00
Allow DI of the workflow manager by the OCP interface
This commit is contained in:
parent
ec8ec17cf4
commit
2a4a1278fa
1 changed files with 4 additions and 0 deletions
|
|
@ -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 a new issue