Skip to content

Commit

Permalink
Use the master request for matching
Browse files Browse the repository at this point in the history
  • Loading branch information
stof committed Aug 22, 2017
1 parent 93878d4 commit 6c4aaa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Knp/Menu/Matcher/Voter/RouteVoter.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function setRequest(Request $request)
public function matchItem(ItemInterface $item)
{
if (null !== $this->requestStack) {
$request = $this->requestStack->getCurrentRequest();
$request = $this->requestStack->getMasterRequest();
} else {
$request = $this->request;
}
Expand Down

0 comments on commit 6c4aaa5

Please sign in to comment.