Skip to content

Commit

Permalink
Nutze neuen Methodenaufruf für Symfony 6 (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianSchmick authored Jun 7, 2023
1 parent 9dbd913 commit dccc1db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"symfony/dependency-injection": "^4.2|^5.0|^6.0",
"symfony/event-dispatcher": "^4.3|^5.0|^6.0",
"symfony/event-dispatcher-contracts": "^1.0|^2.0",
"symfony/http-foundation": "^4.0|^5.0|^6.0",
"symfony/http-foundation": "^5.3|^6.0",
"symfony/http-kernel": "^4.0|^5.0|^6.0",
"symfony/proxy-manager-bridge": "^4.0|^5.0|^6.0",
"symfony/service-contracts": "^1.0|^2.0",
Expand Down
2 changes: 1 addition & 1 deletion src/Event/ActiveNodeEventListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function __construct(RequestStack $requestStack)

public function initializeTree(TreeInitializedEvent $event): void
{
if ($masterRequest = $this->requestStack->getMasterRequest()) {
if ($masterRequest = $this->requestStack->getMainRequest()) {
if ($node = $event->getTree()->find($masterRequest->attributes->all())) {
$node->setActive();
}
Expand Down

0 comments on commit dccc1db

Please sign in to comment.