Mental Space

UserTwigMiddleware
in package
implements MiddlewareInterface

FinalYes

Class UserTwigMiddleware

Table of Contents

Interfaces

MiddlewareInterface

Properties

$session  : SessionInterface
$twig  : Twig

Methods

__construct()  : mixed
UserTwigMiddleware constructor.
process()  : ResponseInterface

Properties

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

Return values
ResponseInterface

        
On this page

Search results