Changes the collection type from RouteCollection to AbstractRouteCollection, which is a common ancestor of both RouteCollection and CompiledRouteCollection. Calls getRoutes to retrieve an iterable route collection instead of just passing the RouteCollection object, which enables the same functionality for both collection types.
It looks like the phpunit check for this isn't fully implemented, but I'm able to execute the laroute:generate command with these changes and all of my routes generate successfully.
Changes the collection type from RouteCollection to AbstractRouteCollection, which is a common ancestor of both RouteCollection and CompiledRouteCollection. Calls getRoutes to retrieve an iterable route collection instead of just passing the RouteCollection object, which enables the same functionality for both collection types.
It looks like the phpunit check for this isn't fully implemented, but I'm able to execute the
laroute:generate
command with these changes and all of my routes generate successfully.