src/Collectors/CombinedRouteCollector.php
public function collectRoutes()
    {
        $routes = [];

        foreach($this->getCollectors() as $collector) {
            $routes = array_merge($routes, $collector->collectRoutes());
        }

        return $routes;
    }
public function collectRoutes()
    {
        $routes = [];

        foreach($this->getCollectors() as $collector) {
            $routes = array_merge($routes, $collector->collectRoutes());
        }

        return $routes;
    }
public function collectRoutes ( ) { $ routes = [ ] ; foreach ( $ this -> getCollectors ( ) as $ collector ) { $ routes = array_merge ( $ routes , $ collector -> collectRoutes ( ) ) ; } return $ routes ; }
Aggregate routes and return an array of Route DTOs

@return RouteInterface[]
Aggregate routes and return an array of Route DTOs