Pionia Core

MiddlewareTrait

Table of Contents

Methods

afterRequest()  : mixed
If provided, this hook will be called after the middleware runs against the request.
afterResponse()  : mixed
If provided, this hook is called after the middleware runs against the response.
beforeRequest()  : mixed
This hook is called before the middleware runs against the request.
beforeResponse()  : mixed
This method is called before the middleware runs against the response.
execute()  : void
This method is called to run the middleware. Every middleware must implement this method.
limitServicesTo()  : Arrayable
Only those services that are listed here will trigger the middleware to run
_runMiddleware()  : void

Methods

afterRequest()

If provided, this hook will be called after the middleware runs against the request.

public afterRequest() : mixed

afterResponse()

If provided, this hook is called after the middleware runs against the response.

public afterResponse() : mixed

beforeRequest()

This hook is called before the middleware runs against the request.

public beforeRequest() : mixed

beforeResponse()

This method is called before the middleware runs against the response.

public beforeResponse() : mixed

_runMiddleware()

private _runMiddleware(mixed $request, mixed $response) : void
Parameters
$request : mixed
$response : mixed

        
On this page

Search results