You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I extended RouteCollector to do some pre-processing on the route definitions before adding them and when trying to use simpleDispatcher, I discovered that I needed to duplicate that code because FastRoute\RouteCollector is a hard-wired dependency.
What do you think about adding "routeCollector" => "FastRoute\\RouteCollector" to the $options array in simpleDispatcher? It would be a backwards compatible change but add the ability to inject a custom RouteCollector.
The text was updated successfully, but these errors were encountered:
I extended RouteCollector to do some pre-processing on the route definitions before adding them and when trying to use simpleDispatcher, I discovered that I needed to duplicate that code because FastRoute\RouteCollector is a hard-wired dependency.
What do you think about adding
"routeCollector" => "FastRoute\\RouteCollector"
to the $options array in simpleDispatcher? It would be a backwards compatible change but add the ability to inject a custom RouteCollector.The text was updated successfully, but these errors were encountered: