|
Moodle PHP Documentation 4.5
Moodle 4.5.5+ (Build: 20250711) (ce34e8ff087)
|
Public Member Functions | |
| __construct (RequestHandlerInterface $kernel, ?CallableResolverInterface $callableResolver=null, ?ContainerInterface $container=null) | |
| add ($middleware) | |
| Add a new middleware to the stack. | |
| addCallable (callable $middleware) | |
| Add a (non-standard) callable middleware to the stack. | |
| addDeferred (string $middleware) | |
| Add a new middleware by class name. | |
| addMiddleware (MiddlewareInterface $middleware) | |
| Add a new middleware to the stack. | |
| handle (ServerRequestInterface $request) | |
| Invoke the middleware stack. | |
| seedMiddlewareStack (RequestHandlerInterface $kernel) | |
| {Seed the middleware stack with the inner request handler.} | |
Protected Attributes | |
| CallableResolverInterface | $callableResolver |
| ContainerInterface | $container |
| RequestHandlerInterface | $tip |
| Tip of the middleware call stack. | |
| Slim\MiddlewareDispatcher::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 |
Implements Slim\Interfaces\MiddlewareDispatcherInterface.
| Slim\MiddlewareDispatcher::addCallable | ( | callable | $middleware | ) |
Add a (non-standard) callable 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).
| Slim\MiddlewareDispatcher::addDeferred | ( | string | $middleware | ) |
Add a new middleware by class name.
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).
| Slim\MiddlewareDispatcher::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).
Implements Slim\Interfaces\MiddlewareDispatcherInterface.
| Slim\MiddlewareDispatcher::handle | ( | ServerRequestInterface | $request | ) |
Invoke the middleware stack.
Implements Psr\Http\Server\RequestHandlerInterface.
| Slim\MiddlewareDispatcher::seedMiddlewareStack | ( | RequestHandlerInterface | $kernel | ) |
{Seed the middleware stack with the inner request handler.}
Implements Slim\Interfaces\MiddlewareDispatcherInterface.