MiddlewareAwareTrait

Middleware This is an internal class that enables concentric middleware layers. This class is an implementation detail and is used only inside of the Slim application; it is not visible to—and should not be used by—end users.

Known Users

Slim\App
Methods Summary
protected
# addMiddleware( callable $callable )
Add middleware This method prepends new middleware to the application middleware stack.
protected
# seedMiddlewareStack( callable $kernel = NULL )
Seed middleware stack with first callable
public
# callMiddlewareStack( Psr\Http\Message\ServerRequestInterface $request , Psr\Http\Message\ResponseInterface $response )
Call middleware stack
Properties Summary
protected callable $tip
Tip of the middleware call stack
# NULL
protected bool $middlewareLock
Middleware stack lock
# false