diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-07-16 17:08:03 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2020-07-21 20:43:18 +0200 |
commit | 91e7f12088cb87ffef5660429ece404364167978 (patch) | |
tree | baf44ebc7b240bd49eb0f6bf615cbb1ed99d13db /apps/workflowengine | |
parent | e029055e766298c5852eedabf06ff42b06a50198 (diff) | |
download | nextcloud-server-91e7f12088cb87ffef5660429ece404364167978.tar.gz nextcloud-server-91e7f12088cb87ffef5660429ece404364167978.zip |
Adjust apps' code to use the ContainerInterface
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/workflowengine')
-rw-r--r-- | apps/workflowengine/lib/AppInfo/Application.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/apps/workflowengine/lib/AppInfo/Application.php b/apps/workflowengine/lib/AppInfo/Application.php index 2fd38c5f1ba..ddac4a74e28 100644 --- a/apps/workflowengine/lib/AppInfo/Application.php +++ b/apps/workflowengine/lib/AppInfo/Application.php @@ -21,6 +21,7 @@ namespace OCA\WorkflowEngine\AppInfo; +use Closure; use OCA\WorkflowEngine\Controller\RequestTime; use OCA\WorkflowEngine\Helper\LogContext; use OCA\WorkflowEngine\Listener\LoadAdditionalSettingsScriptsListener; @@ -57,11 +58,7 @@ class Application extends App implements IBootstrap { } public function boot(IBootContext $context): void { - $this->registerRuleListeners( - $context->getAppContainer()->query(IEventDispatcher::class), - $context->getServerContainer(), - $context->getAppContainer()->query(ILogger::class) - ); + $context->injectFn(Closure::fromCallable([$this, 'registerRuleListeners'])); } private function registerRuleListeners(IEventDispatcher $dispatcher, |