Skip to content

Commit

Permalink
Added a way to pass the uri in the UriVoter constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
stof committed Jun 17, 2012
1 parent 3fadd3a commit 5bd37e0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Knp/Menu/Matcher/Voter/UriVoter.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ class UriVoter implements VoterInterface
{
private $uri;

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

public function setUri($uri)
{
$this->uri = $uri;
Expand Down

0 comments on commit 5bd37e0

Please sign in to comment.