RavSystem API docs

UserActivityMiddleware extends BaseMiddleware
in package

Table of Contents

$logger  : LoggerInterface
$request  : ServerRequestInterface
HTTP request
$userRepository  : IUserRepository
__construct()  : mixed
process()  : ResponseInterface
abstracts away logic needed for all other middlewares
processRequest()  : ResponseInterface
Process an incoming server request
getMethod()  : string
gets method of the request
getPath()  : string
gets path of the request
getSession()  : object
returns session object with token data

Properties

Methods

process()

abstracts away logic needed for all other middlewares

public process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
Parameters
$request : ServerRequestInterface
$handler : RequestHandlerInterface
Return values
ResponseInterface

processRequest()

Process an incoming server request

public processRequest(RequestHandlerInterface $handler) : ResponseInterface
Parameters
$handler : RequestHandlerInterface
Return values
ResponseInterface

getMethod()

gets method of the request

protected getMethod() : string
Return values
string

getPath()

gets path of the request

protected getPath() : string
Return values
string

getSession()

returns session object with token data

protected getSession() : object
Return values
object

Search results