Skip to content

Commit

Permalink
Fixed RouteVoter
Browse files Browse the repository at this point in the history
  • Loading branch information
Nek- committed Jul 23, 2014
1 parent ca591b2 commit 9ac0075
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.0.1 (2014-XX-XX)

* Fixed voter conventions on RouteVoter

## 2.0.0 (2014-07-18)

* [BC break] Clean code and removed the BC layer
Expand Down
5 changes: 5 additions & 0 deletions src/Knp/Menu/Matcher/Voter/RouteVoter.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ class RouteVoter implements VoterInterface
*/
private $request;

public function __construct(Request $request = null)
{
$this->request = $request;
}

public function setRequest(Request $request)
{
$this->request = $request;
Expand Down

0 comments on commit 9ac0075

Please sign in to comment.