- 2654 -
RouteParser::pathFor()andRouteParser::relativePathFor()are deprecated. UseRouteParser::urlFor()andRouteParser::relativeUrlFor() - 2638 -
RouteCollector::pathFor()is now deprecated. UseRouteParser::urlFor() - 2622 -
Routerhas been removed. It is now split intoRouteCollector,RouteRunnerandRouteParser - 2555 - PSR-15 Middleware support was implemented at the cost of Double-Pass middleware being deprecated.
- 2529 - Slim no longer ships with its own PSR-7 implementation you will need to provide your own before you can create/run an app.
- 2507 - Method names are now case sensitive when using
App::map(). - 2404 - Slim 4 requires PHP 7.1 or higher
- 2398 - Error handling was extracted into its own middleware. Add
RoutingMiddlewareto your middleware pipeline to handle errors by default. See PR for more information. - 2329 - If you were overriding the HTTP method using either the custom header or the body param, you need to add the
Middleware\MethodOverrideMiddlewaremiddleware to be able to override the method like before. - 2290 - Slim no longer ships with
Pimpleas container dependency so you need to supply your own.App::__call()has been deprecated. - 2288 - If you were using
determineRouteBeforeAppMiddleware, you need to add theMiddleware\RoutingMiddlewaremiddleware to your application just before your callrun()to maintain the previous behaviour. - 2254 - You need to add the
Middleware\ContentLengthMiddlewaremiddleware if you want Slim to add the Content-Length header this automatically. - 2166 - You need to add the
Middleware\OutputBufferingmiddleware to capture echo'd or var_dump'd output from your code.