Skip to content

Latest commit

 

History

History
50 lines (26 loc) · 1.3 KB

File metadata and controls

50 lines (26 loc) · 1.3 KB

4.x to 5.x

Requirements

PHP ^8.3 (was ^8.0).

Router packages need to be upgraded to ^2.0 (e.g. composer require chubbyphp/chubbyphp-framework-router-fastroute "^2.0"). The Router class (e.g. Chubbyphp\Framework\Router\FastRoute\Router) got dropped there, use RouteMatcher and UrlGenerator.

Middleware

ExceptionMiddleware

Makes use of chubbyphp/chubbyphp-http-exception for catching http exceptions. If you use a custom exception handler, please make sure you also catch chubbyphp/chubbyphp-http-exception.

RouteMatcherMiddleware

Does not catch exceptions anymore, this will be done by the ExceptionMiddleware.

Constructor signature changed from ($routeMatcher, $responseFactory, $logger = null) to ($routeMatcher).

Routing

HttpExceptionInterface

Replaced by chubbyphp/chubbyphp-http-exception

MethodNotAllowedException

Replaced by chubbyphp/chubbyphp-http-exception

NotFoundException

Replaced by chubbyphp/chubbyphp-http-exception

RouterException

Extends \LogicException and not \RuntimeException anymore, cause the router exceptions shouldn't be runtime related anymore.

Routes

Renamed to RoutesByName

RoutesInterface

Renamed to RoutesByNameInterface