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
A new RouteParser is created and the existing one is not used. You can't access the routeparser because there is no getter for it on the RouteCollector. Without BC breaks reflection or a PR to FastRoute is needed.
It would be better to hide that code into a method and cache it so it is needed only once.
Another option is to change the constructor, but that would mean a BC break and rewriting all tests:
Added Unit test to show difference in output between a user defined parser inside of the RouteCollector and the one generated by $router->generateUri
Originally posted by @TaylorSasser at zendframework/zend-expressive-fastroute#63
The text was updated successfully, but these errors were encountered: