Skip to content

0.7.0

Compare
Choose a tag to compare
@BenMorel BenMorel released this 21 Nov 00:46
· 65 commits to master since this release

💥 Breaking changes

  • minimum PHP version is now 7.4
  • based on brick/http: ~0.3.0 with immutable requests/responses
  • ExceptionCaughtEvent has been removed; use HttpExceptionEvent instead
  • AnnotationRouteCompiler::processAnnotation() is now private
  • AnnotationRouteCompiler::compile() now returns a priority as well; routes have to be re-built
  • Session::handleRequest() is now called readSessionIdFromRequest()
  • Session::handleResponse() is now called writeSessionIdToResponse() and returns a Response object
  • ResponseReceivedEvent is not triggered anymore after an HttpException

🗑 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 an HttpException
    • HttpExceptionEvent converts an HttpException to a Response
  • ResponseReceivedEvent now has a setResponse() method, because Response is now immutable

  • New method: Application::handleWithoutCatchingExceptions()