Skip to content

Commit

Permalink
Get all the connected routes list.
Browse files Browse the repository at this point in the history
  • Loading branch information
bar committed Apr 1, 2014
1 parent 8903d7d commit 6e028ca
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Routing/RouteCollection.php
Expand Up @@ -225,6 +225,15 @@ public function get($index) {
return isset($this->_routes[$index]) ? $this->_routes[$index] : null;
}

/**
* Get the list of connected routes.
*
* @return array.
*/
public function routes() {
return $this->_routes;
}

/**
* Part of the countable interface.
*
Expand Down

0 comments on commit 6e028ca

Please sign in to comment.