Skip to content

Commit

Permalink
Fix a deprecation notice issued by symfony/event-dispatcher ^4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
mpdude committed May 31, 2021
1 parent c2431b7 commit fdaa02f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions Build/TreeFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'
);
}
}

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit fdaa02f

Please sign in to comment.