Slim is a PHP micro framework that helps you quickly write simple yet powerful web applications and APIs. On August 20, the Slim development team announced the release of Slim Framework version 4.2.0. You can direct all your feedback for this release to the Slim 4 Release Feedback Thread. The new docs are located here.
Changelog
Added
- 2787 Add an advanced callable resolver
- 2791 Add
inferPrivatePropertyTypeFromConstructor
to phpstan - 2793 Add ability to configure application via a container in
AppFactory
- 2798 Add PSR-7 Agnostic Body Parsing Middleware
- 2801 Add
setLogErrorRenderer()
method toErrorHandler
- 2807 Add check for Slim callable notation if no resolver given
- 2803 Add ability to emit non seekable streams in
ResponseEmitter
- 2817 Add the ability to pass in a custom
MiddlewareDispatcherInterface
to theApp
Fixed
- 2789 Fix Cookie header detection in
ResponseEmitter
- 2796 Fix http message format
- 2800 Fix null comparisons more clear in
ErrorHandler
- 2802 Fix incorrect search of a header in stack
- 2806 Simplify
Route::prepare()
method argument preparation - 2809 Eliminate a duplicate code via HOF in
MiddlewareDispatcher
- 2816 Fix RouteCollectorProxy::redirect() bug
Removed
- 2811 Remove
DeferredCallable