Skip to content

Commit 458f0da

Browse files
Merge pull request #597 from nextcloud/fix-di-of-workflow-manager
Allow DI of the workflow manager by the OCP interface
2 parents 318d68a + da97a69 commit 458f0da

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/private/AppFramework/DependencyInjection/DIContainer.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,10 @@ public function __construct($appName, $urlParams = array()){
289289
return $this->getServer()->getEventDispatcher();
290290
});
291291

292+
$this->registerService('OCP\WorkflowEngine\IManager', function ($c) {
293+
return $c->query('OCA\WorkflowEngine\Manager');
294+
});
295+
292296
$this->registerService('OCP\\AppFramework\\IAppContainer', function ($c) {
293297
return $c;
294298
});

0 commit comments

Comments
 (0)