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 ec8ec17cf4
commit 2a4a1278fa
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(); 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;
}); });