diff options
author | Morris Jobke <hey@morrisjobke.de> | 2020-07-22 20:38:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-22 20:38:50 +0200 |
commit | 346f647962e00b1f5e5f19a8526c88a09ebca59e (patch) | |
tree | 64f324cb5ff04f29247bf00f32e84bc7c8f4ed36 /apps/workflowengine | |
parent | c842678f0a1fb65981a03302895192ddc58479c9 (diff) | |
parent | 7870ca06637453f4e72dbd67edbfb3603d813196 (diff) | |
download | nextcloud-server-346f647962e00b1f5e5f19a8526c88a09ebca59e.tar.gz nextcloud-server-346f647962e00b1f5e5f19a8526c88a09ebca59e.zip |
Merge pull request #21870 from nextcloud/fix/bootstrap-context-container-interfaces
Make the bootstrap context return ContainerInterface instances
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, |