UserTwigMiddleware
in package
implements
MiddlewareInterface
FinalYes
Class UserTwigMiddleware
Table of Contents
Interfaces
- MiddlewareInterface
Properties
Methods
- __construct() : mixed
- UserTwigMiddleware constructor.
- process() : ResponseInterface
Properties
$session
private
SessionInterface
$session
$twig
private
Twig
$twig
Methods
__construct()
UserTwigMiddleware constructor.
public
__construct(Twig $twig, SessionInterface $session) : mixed
Parameters
- $twig : Twig
-
Twig Class
- $session : SessionInterface
-
Session class
process()
public
process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
Parameters
- $request : ServerRequestInterface
-
The Request
- $handler : RequestHandlerInterface
-
The Handler