From 91e7f12088cb87ffef5660429ece404364167978 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Thu, 16 Jul 2020 17:08:03 +0200 Subject: Adjust apps' code to use the ContainerInterface Signed-off-by: Christoph Wurst --- apps/workflowengine/lib/AppInfo/Application.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'apps/workflowengine') 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, -- cgit v1.2.3