| 1 | <?php |
||
| 9 | abstract class MiddlewareAbstract implements MiddlewareInterface |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var ServerRequestInterface |
||
| 13 | */ |
||
| 14 | protected $request; |
||
| 15 | /** |
||
| 16 | * @var ResponseInterface |
||
| 17 | */ |
||
| 18 | protected $response; |
||
| 19 | /** |
||
| 20 | * @var callable |
||
| 21 | */ |
||
| 22 | protected $next; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param ServerRequestInterface $request |
||
| 26 | * @param ResponseInterface $response |
||
| 27 | * @param callable|null $next |
||
| 28 | * @return EmptyResponse |
||
| 29 | * @throws \Exception |
||
| 30 | */ |
||
| 31 | public function __invoke( |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @return mixed |
||
| 44 | */ |
||
| 45 | protected function next() |
||
| 51 | } |
||
| 52 |