FastRoute icon indicating copy to clipboard operation
FastRoute copied to clipboard

Allow for custom ConfigureRoutes implementations

Open pmjones opened this issue 11 months ago • 1 comments

This PR adds a useCustomConfigureRoutes() method to FastRoute to allow for custom ConfigureRoutes implementations.

Also in FastRoute:

  • rename $configuredRoutes and $routeConfiguration to $configureRoutes for consistency
  • add configureRoutes() method to allow testing for the custom implementation
  • rename buildConfiguration() to processedConfiguration(), and make public so utilities (such as a URL dumper) can examine the routes
  • make RouteCollector non-final so it can be extended by consumers, e.g. to auto-add route names

(Note that I modified and force-pushed this PR after initial submission; my apologies for the hassle.)

pmjones avatar Mar 10 '24 17:03 pmjones