Releases: Ahmard/quick-route
Releases · Ahmard/quick-route
v3.9.0
v3.8.3
v3.8.2
v3.8.1
- Method param default value change, Collector::cache(bool $hasClosures = false)
- PHP warning fixed being thrown when cached route is marked as "hasClosures" and the route does not have closures: "PHP Warning:
Undefined array key "handler" in quick-route/src/Router/Cache.php on line 33 - PHPStan error fixed: "Parameter #1 $name of method QuickRoute\Crud::parameter() expects string, string|null given in Crud.php at line 85."
v3.8.0
- Crud::create() added for crud routes generation
- Route::resource() route name does not contain prefix value anymore.
- RouteInterface::where...() methods parameter rename
- This change is made with the knowledge of how it will impact code written PHP >= 8.0.
- This change is made to use named param easier, as "param" is more convenient to use than "parameterName"
v3.7.3
v3.7.2
v3.7.1
v3.7.0
- RouteInterface::matchAny(array $methods, array $paths, $handler): RouteInterface - Generate multiple routes using multiple method and path but single handle
- DispatchResult::route(string $routeName): ?array - This is to find route by its name
- DispatchResult::uri(string $routeName): ?string - Generate route uri using route's name
v3.6.0
- RouteInterface::where(string|array $param, ?string $regExp = null): RouteInterface
- RouteInterface::resource() now accepts four parameters, you can now provide custom url id parameter name
- Regular expression bug related to whereNumber(), whereAlpha(), whereAlphanumeric() methods has been fixed
- Code reformat