Documentation

MiddlewareInterface

Interface for route middleware.

Middleware can inspect and modify requests before they reach controllers, and can halt request processing (e.g., for authentication failures).

Tags
category

Lwt

author

HugoFara hugo.farajallah@protonmail.com

license

Unlicense http://unlicense.org/

link
https://hugofara.github.io/lwt/docs/php/
since
3.0.0

Table of Contents

Methods

handle()  : bool
Handle the incoming request.

Methods

handle()

Handle the incoming request.

public handle() : bool

Return true to continue to the next middleware/controller. Return false to halt request processing (middleware should handle response).

Return values
bool

True if the request should continue, false to halt


        
On this page

Search results