XBackBone/app/Middleware/Middleware.php

20 lines
492 B
PHP
Raw Normal View History

2019-01-10 22:22:19 +00:00
<?php
namespace App\Middleware;
use App\Controllers\Controller;
2019-11-12 23:13:23 +00:00
use Psr\Http\Message\ResponseInterface as Response;
use Psr\Http\Message\ServerRequestInterface as Request;
use Psr\Http\Server\RequestHandlerInterface as RequestHandler;
2019-01-10 22:22:19 +00:00
abstract class Middleware extends Controller
2019-01-10 22:22:19 +00:00
{
2019-11-12 23:13:23 +00:00
/**
2019-11-20 17:49:31 +00:00
* @param Request $request
* @param RequestHandler $handler
*
2019-11-12 23:13:23 +00:00
* @return Response
*/
2019-11-20 17:49:31 +00:00
abstract public function __invoke(Request $request, RequestHandler $handler);
}