2021-09-17 18:55:08 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace Http\Handler\Abstracts;
|
|
|
|
|
|
2021-09-24 17:46:20 +08:00
|
|
|
use Annotation\Inject;
|
2021-09-17 18:55:08 +08:00
|
|
|
use Psr\Http\Server\MiddlewareInterface;
|
2021-09-24 17:46:20 +08:00
|
|
|
use Server\Constrict\ResponseInterface;
|
2021-09-17 18:55:08 +08:00
|
|
|
|
2021-09-24 17:46:20 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
*/
|
2021-09-17 18:55:08 +08:00
|
|
|
abstract class Middleware implements MiddlewareInterface
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
2021-09-24 17:46:20 +08:00
|
|
|
#[Inject(ResponseInterface::class)]
|
|
|
|
|
public ResponseInterface $response;
|
2021-09-17 18:55:08 +08:00
|
|
|
|
|
|
|
|
}
|