mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
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:
commit
458f0da373
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