diff --git a/src/Knp/Menu/Matcher/Voter/UriVoter.php b/src/Knp/Menu/Matcher/Voter/UriVoter.php index d828e449..1b0b3eaa 100644 --- a/src/Knp/Menu/Matcher/Voter/UriVoter.php +++ b/src/Knp/Menu/Matcher/Voter/UriVoter.php @@ -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;