Skip to content

Commit

Permalink
Add getRoutes function that copies the array
Browse files Browse the repository at this point in the history
  • Loading branch information
carlbennett committed Apr 9, 2017
1 parent d8389a6 commit 6234851
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libraries/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,10 @@ public function getRequestURI() {
return $this->requestURI;
}

public function getRoutes() {
return clone (object) $this->routes;
}

public function route() {
$path = $this->getRequestPathString(true);
$target = null;
Expand Down

0 comments on commit 6234851

Please sign in to comment.