Fix documentation to clarify that a FinalMatcher returns attributes, not a Route or RouteCollection.
parent
d372d6de99
commit
a3e002dbe4
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue