Closed garak closed 6 years ago
@garak I have started working on implementation (symfony_routing branch), but there is a problem - symfony router does not support optional parts :<. I am wondering whether it is worth supporting this feature. Any guess?
I didn't try to use routing outside Symfony framework, but inside framework itself such option is present (so I guess it's possible somehow)
Could you please provide me equivalent of the following route:
/some[/optional[/{route}]]
Have seen it, and it looks like you can have optional placeholders (if you define default values) but not optional parts of the route.
I see. To fulfill your example, you need to define 2 routes
precisely! But if none is using this functionality maybe its worth switching to symfony-router.
Fixed.
According to Symfony blog, its router is now faster than FastRoute. You should consider a change in your requirements. As alternative, you should remove mention to "fastest router" in README.