Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250620) (7d9030acd6e)
|
Public Member Functions | |
add ($middleware) | |
Add a new middleware to the stack. | |
addMiddleware (MiddlewareInterface $middleware) | |
Add a new middleware to the stack. | |
handle (ServerRequestInterface $request) | |
Handles a request and produces a response. | |
seedMiddlewareStack (RequestHandlerInterface $kernel) | |
Seed the middleware stack with the inner request handler. | |
Slim\Interfaces\MiddlewareDispatcherInterface::add | ( | $middleware | ) |
Add a new middleware to the stack.
Middleware are organized as a stack. That means middleware that have been added before will be executed after the newly added one (last in, first out).
MiddlewareInterface | string | callable | $middleware |
Implemented in Slim\MiddlewareDispatcher.
Slim\Interfaces\MiddlewareDispatcherInterface::addMiddleware | ( | MiddlewareInterface | $middleware | ) |
Add a new middleware to the stack.
Middleware are organized as a stack. That means middleware that have been added before will be executed after the newly added one (last in, first out).
Implemented in Slim\MiddlewareDispatcher.
|
inherited |
Handles a request and produces a response.
May call other collaborating code to generate the response.
Implemented in Slim\App, Slim\MiddlewareDispatcher, Slim\Routing\Route, and Slim\Routing\RouteRunner.
Slim\Interfaces\MiddlewareDispatcherInterface::seedMiddlewareStack | ( | RequestHandlerInterface | $kernel | ) |
Seed the middleware stack with the inner request handler.
Implemented in Slim\MiddlewareDispatcher.