From fdaa02f96b911681a75e0dc1e616c73cfbb4b9f3 Mon Sep 17 00:00:00 2001 From: Matthias Pigulla Date: Fri, 21 May 2021 10:39:27 +0000 Subject: [PATCH] Fix a deprecation notice issued by symfony/event-dispatcher ^4.3 --- Build/TreeFactory.php | 6 ++++-- composer.json | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Build/TreeFactory.php b/Build/TreeFactory.php index b7f29eb..78f4a41 100644 --- a/Build/TreeFactory.php +++ b/Build/TreeFactory.php @@ -114,8 +114,10 @@ public function getTree() } if ($this->eventDispatcher) { - $this->eventDispatcher->dispatch('webfactory_navigation.tree_initialized', - new TreeInitializedEvent($this->_tree)); + $this->eventDispatcher->dispatch( + new TreeInitializedEvent($this->_tree), + 'webfactory_navigation.tree_initialized' + ); } } diff --git a/composer.json b/composer.json index 19d6a0d..f5f8cc1 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,7 @@ "symfony/config": "^2.8|^3.4|^4.0", "symfony/console": "^2.8|^3.4|^4.0", "symfony/dependency-injection": "^3.4|^4.0", - "symfony/event-dispatcher": "^2.8|^3.4|^4.0", + "symfony/event-dispatcher": "^4.3", "symfony/framework-bundle": "^3.4|^4.0", "symfony/http-foundation": "^2.8|^3.4|^4.0", "symfony/http-kernel": "^2.8|^3.4|^4.0",