Skip to content
This repository has been archived by the owner on Jan 9, 2025. It is now read-only.

Suggestions / Revamp #3

Merged
merged 55 commits into from
Mar 17, 2023
Merged

Suggestions / Revamp #3

merged 55 commits into from
Mar 17, 2023

Conversation

CommandString
Copy link
Member

@CommandString CommandString commented Mar 7, 2023

Massive Revamp

  • Before Middleware is now referred to as middleware
  • After Middleware is now referred to as postware
  • Mounting routes is now referred to as grouping routes
  • Handling middleware/postware has now changed
  • Using closures for handlers is no longer possible
  • RequestHandlerInterface is used for middleware, postware, route controllers
  • Internal Performance Updates
  • Catchable exceptions must extend HttpException

examples/HttpCodesApi/CatchInternalServerError.php Outdated Show resolved Hide resolved
examples/HttpCodesApi/GetCode.php Outdated Show resolved Hide resolved
examples/HttpCodesApi/ListCodes.php Outdated Show resolved Hide resolved
examples/HttpCodesApi/index.php Outdated Show resolved Hide resolved
src/Exceptions/HttpBadGateway.php Show resolved Hide resolved
src/Exceptions/HttpUpgradeRequired.php Show resolved Hide resolved
src/Exceptions/HttpVariantAlsoNegotiates.php Show resolved Hide resolved
src/Routing/Next.php Outdated Show resolved Hide resolved
src/Routing/ResolvedRoute.php Outdated Show resolved Hide resolved
tools/HttpExceptions/GenerateClasses.php Outdated Show resolved Hide resolved
@CommandString CommandString marked this pull request as ready for review March 10, 2023 12:00
CommandString and others added 2 commits March 10, 2023 07:06
Co-authored-by: Exanlv <51094537+Exanlv@users.noreply.github.com>
examples/HttpCodesApi/HtmlResponse.php Show resolved Hide resolved
examples/HttpCodesApi/HtmlResponse.php Outdated Show resolved Hide resolved
src/Exceptions/HttpException.php Show resolved Hide resolved
src/Exceptions/HttpException.php Show resolved Hide resolved
src/Exceptions/HttpExceptionHtmlResponse.php Outdated Show resolved Hide resolved
src/Interfaces/RequestHandlerInterface.php Outdated Show resolved Hide resolved
src/Routing/Route.php Outdated Show resolved Hide resolved
src/Routing/Route.php Show resolved Hide resolved
src/Routing/Route.php Show resolved Hide resolved
examples/HttpCodesApi/GetCode.php Outdated Show resolved Hide resolved
src/Exceptions/HttpException.php Show resolved Hide resolved
src/Exceptions/HttpImateapot.php Outdated Show resolved Hide resolved
@Exanlv
Copy link
Contributor

Exanlv commented Mar 11, 2023

Not sure whether you have it or not, Laravel uses a 419 for page expired. Its not an officially recognized code, but Id recommend using it

@CommandString CommandString changed the title Exanlv/suggestions Suggestions / Revamp Mar 13, 2023
examples/HttpCodesApi/index.php Outdated Show resolved Hide resolved
src/Exceptions/HttpHTTPVersionNotSupported.php Outdated Show resolved Hide resolved
src/Routing/Next.php Outdated Show resolved Hide resolved
src/Exceptions/HttpExceptionHtmlResponse.php Outdated Show resolved Hide resolved
.gitignore Show resolved Hide resolved
examples/HttpCodesApi/GetCode.php Show resolved Hide resolved
examples/HttpCodesApi/index.php Show resolved Hide resolved
src/Exceptions/HttpVersionNotSupported.php Show resolved Hide resolved
@CommandString CommandString merged commit fa5bd5f into main Mar 17, 2023
@CommandString
Copy link
Member Author

CommandString commented Mar 17, 2023

Did not mean to merge

This continues at #4

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants