PHP Class WoohooLabs\Harmony\Middleware\FastRouteMiddleware

Inheritance: implements WoohooLabs\Harmony\Middleware\MiddlewareInterface
Show file Open project: woohoolabs/harmony

Protected Properties

Property Type Description
$actionAttributeName string
$fastRoute FastRoute\Dispatcher

Public Methods

Method Description
__construct ( FastRoute\Dispatcher $fastRoute = null, string $actionAttributeName = "__action" )
__invoke ( Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response, callable $next ) : Psr\Http\Message\ResponseInterface
getActionAttributeName ( ) : string
getFastRoute ( ) : FastRoute\Dispatcher
setActionAttributeName ( string $actionAttributeName )
setFastRoute ( FastRoute\Dispatcher $fastRoute )

Method Details

__construct() public method

public __construct ( FastRoute\Dispatcher $fastRoute = null, string $actionAttributeName = "__action" )
$fastRoute FastRoute\Dispatcher
$actionAttributeName string

__invoke() public method

public __invoke ( Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response, callable $next ) : Psr\Http\Message\ResponseInterface
$request Psr\Http\Message\ServerRequestInterface
$response Psr\Http\Message\ResponseInterface
$next callable
return Psr\Http\Message\ResponseInterface

getActionAttributeName() public method

public getActionAttributeName ( ) : string
return string

getFastRoute() public method

public getFastRoute ( ) : FastRoute\Dispatcher
return FastRoute\Dispatcher

setActionAttributeName() public method

public setActionAttributeName ( string $actionAttributeName )
$actionAttributeName string

setFastRoute() public method

public setFastRoute ( FastRoute\Dispatcher $fastRoute )
$fastRoute FastRoute\Dispatcher

Property Details

$actionAttributeName protected property

protected string $actionAttributeName
return string

$fastRoute protected property

protected Dispatcher,FastRoute $fastRoute
return FastRoute\Dispatcher