Fix documentation to clarify that a FinalMatcher returns attributes, not a Route or RouteCollection.

8.0.x
Larry Garfield 2012-07-03 20:20:34 -05:00 committed by effulgentsia
parent d372d6de99
commit a3e002dbe4
2 changed files with 4 additions and 4 deletions

View File

@ -18,8 +18,8 @@ interface FinalMatcherInterface {
* @param Request $request
* A Request object against which to match.
*
* @return RouteCollection
* A RouteCollection of matched routes.
* @return array
* An array of parameters
*/
public function matchRequest(Request $request);
}

View File

@ -118,9 +118,9 @@ class NestedMatcher implements NestedMatcherInterface {
$collection = $matcher->matchRequestPartial($request);
}
$route = $this->finalMatcher->setCollection($collection)->matchRequest($request);
$attributes = $this->finalMatcher->setCollection($collection)->matchRequest($request);
return $route;
return $attributes;
}
/**