FastRoute
FastRoute copied to clipboard
Fast request router for PHP
Hello, I tried this pattern for stack multiple addGroup and try to group some category but doesnt work: ``` $r->addGroup('/admin', function (FastRoute\RouteCollector $r) { $r->addGroup('/company', function (FastRoute\RouteCollector $r) { }...
### When I tried to use it, it was deprecated, what alternatives can I use? The README also uses it, so I suggest changing it up.
Some stricter high-level libraries (e.g. `mezzio`) require explicit declaration of HEAD routes and need to re-implement custom behaviour to circumvent our auto-fallback.
We should allow users to define an extra parameter to be used as fallback substitutions while registering routes. That enables high-level libraries (e.g. `mezzio-fastroute`) to be simplified.