Symfony\Component\Routing\Matcher\Dumper\PhpMatcherDumper::groupRoutesByHostRegex
Groups consecutive routes having the same host regex.
The result is a collection of collections of routes having the same host regex.
Signature
private function groupRoutesByHostRegex(RouteCollection
$routes )
Parameters
$routes
— Symfony\Component\Routing\RouteCollection- A flat RouteCollection
Returns
- DumperCollection
- A collection with routes grouped by host regex in sub-collections