0.7.0
💥 Breaking changes
- minimum PHP version is now 7.4
- based on
brick/http: ~0.3.0
with immutable requests/responses ExceptionCaughtEvent
has been removed; useHttpExceptionEvent
insteadAnnotationRouteCompiler::processAnnotation()
is now privateAnnotationRouteCompiler::compile()
now returns a priority as well; routes have to be re-builtSession::handleRequest()
is now calledreadSessionIdFromRequest()
Session::handleResponse()
is now calledwriteSessionIdToResponse()
and returns aResponse
objectResponseReceivedEvent
is not triggered anymore after anHttpException
🗑 Deprecations
- The
TransactionalPlugin
has been deprecated, and will be removed in 0.8.0
✨ New features
-
Annotation routes now support priorities
-
The exception handling has been split into 2 events:
UncaughtExceptionEvent
converts an uncaught exception to anHttpException
HttpExceptionEvent
converts anHttpException
to aResponse
-
ResponseReceivedEvent
now has asetResponse()
method, becauseResponse
is now immutable -
New method:
Application::handleWithoutCatchingExceptions()