Allow DI of the workflow manager by the OCP interface

This commit is contained in:
Joas Schilling 2016-07-27 11:46:09 +02:00
parent 318d68a9a9
commit da97a69148
No known key found for this signature in database
GPG Key ID: E166FD8976B3BAC8
1 changed files with 4 additions and 0 deletions

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