Permalink
Browse files

Added a way to get at the original uri that matched the route

  • Loading branch information...
1 parent c9c1628 commit 63014a859097bd66d6ff6f85039195bce4eed4fc @rikh42 committed Mar 4, 2013
Showing with 10 additions and 0 deletions.
  1. +10 −0 routing/Route.php
View
@@ -185,6 +185,16 @@ public function isMatch($path, Request $request)
return true;
}
+
+ /**
+ * Returns the URL that matched the route, or empty string
+ * @return string
+ */
+ public function getMatchedUri()
+ {
+ return $this->matchedUri;
+ }
+
/**
* Gets the name of the class for the controller
* @return string

0 comments on commit 63014a8

Please sign in to comment.