Releases: Lemon-Framework/Lemon
Releases · Lemon-Framework/Lemon
3.0.0
2.6.9 RouteGroup features
Route::controller now returns RouteGroup which has new method for manipulating with middlewares, names and paths.
2.6.8 Bug fixes && Route::view
This update fixes lemonade serve for dirs with space and Route::controller request methods. It has also included Route::view
Most of it is by @CoolFido
2.6.7 Cleaner templates
This update removed ability to write <?php in lemon templates.
2.6.6 Bug fixes
This patch fixes nested route groups and now you don't need to have middlewares in route groups.
Also big thanks comes to @ordago which refactored the code ❤️
2.6.5 Http improvements
Add:
Route::controller
resources with this scheme:
"controllerMethod" => ["request_method", "url"],
"index" => ["get", "/"],
"create" => ["get", "/create"],
"store" => ["get", "/create"],
"show" => ["get", "/{target}"],
"edit" => ["get", "/{target}/edit"],
"update" => ["post", "/{target}"],
"delete" => ["get", "/{target}/delete"]
When your controller has any of those methods, it will create route for them with specified request method and url patern.
Changed:
- MiddlewareKernel to MiddlewareCollection
- When
/
is in dynamic route parameter, it won't be considered as part of parameter:
Route::get("/lemons/{id}", function($id) {
// ...
});
// /lemons/1 will be accepted as part of this route
// lemons/1/hi will be accepted as part of /lemons/{id}/hi, in this case it will throw 404
2.6.4 MiddlewareKernel
Changed:
- Middlewares are called from new MiddlewareKernel and they support returning response.
2.6.3 Route::controller Grouping
Added:
- Grouping routes generated with Route::controller
2.6.2 New route features
Added:
- Nested route groups
- To_route dynamic routes
Removed:
- Obligation to return valid statements in route callback
2.6.1 Route controller & Bug fixes
Add:
Route::controller
which creates route for every route named as request method
Fix:
- Constants
- Booter