1 | <?php declare(strict_types=1); |
||
8 | trait MiddlewareAwareTrait |
||
9 | { |
||
10 | /** |
||
11 | * @var \Psr\Http\Server\MiddlewareInterface[] |
||
12 | */ |
||
13 | protected $middleware = []; |
||
14 | |||
15 | /** |
||
16 | * {@inheritdoc} |
||
17 | */ |
||
18 | 16 | public function middleware(MiddlewareInterface $middleware) : MiddlewareAwareInterface |
|
24 | |||
25 | /** |
||
26 | * {@inheritdoc} |
||
27 | */ |
||
28 | 32 | public function middlewares(array $middlewares) : MiddlewareAwareInterface |
|
36 | |||
37 | /** |
||
38 | * {@inheritdoc} |
||
39 | */ |
||
40 | 30 | public function prependMiddleware(MiddlewareInterface $middleware) : MiddlewareAwareInterface |
|
46 | |||
47 | /** |
||
48 | * {@inheritdoc} |
||
49 | */ |
||
50 | 30 | public function shiftMiddleware() : MiddlewareInterface |
|
60 | |||
61 | /** |
||
62 | * {@inheritdoc} |
||
63 | */ |
||
64 | 32 | public function getMiddlewareStack() : iterable |
|
68 | } |
||
69 |