refactored route parameter parsing tests.

This commit is contained in:
Taylor Otwell
2011-07-13 23:24:22 -05:00
parent 537139a2ca
commit 121a15bbcf
2 changed files with 26 additions and 15 deletions

View File

@@ -107,7 +107,7 @@ class Router {
* @param string $route
* @return array
*/
public static function parameters($uri, $route)
private static function parameters($uri, $route)
{
return array_values(array_intersect_key(explode('/', $uri), preg_grep('/\(.+\)/', explode('/', $route))));
}