PHP Class Modules\Core\Source\Libs\Middleware\AuthMiddleware

Show file Open project: andrey900/slimcms

Public Methods

Method Description
__invoke ( Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response, callable $next ) : Psr\Http\Message\ResponseInterface Example middleware invokable class

Method Details

__invoke() public method

Example middleware invokable class
public __invoke ( Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response, callable $next ) : Psr\Http\Message\ResponseInterface
$request Psr\Http\Message\ServerRequestInterface PSR7 request
$response Psr\Http\Message\ResponseInterface PSR7 response
$next callable Next middleware
return Psr\Http\Message\ResponseInterface