1 | <?php declare(strict_types=1); |
||
7 | trait MiddlewareAwareTrait |
||
8 | { |
||
9 | /** |
||
10 | * @var \Psr\Http\Server\MiddlewareInterface[] |
||
11 | */ |
||
12 | protected $middleware = []; |
||
13 | |||
14 | /** |
||
15 | * {@inheritdoc} |
||
16 | */ |
||
17 | 12 | public function middleware(MiddlewareInterface $middleware) : MiddlewareAwareInterface |
|
23 | |||
24 | /** |
||
25 | * {@inheritdoc} |
||
26 | */ |
||
27 | 28 | public function middlewares(array $middlewares) : MiddlewareAwareInterface |
|
35 | |||
36 | /** |
||
37 | * {@inheritdoc} |
||
38 | */ |
||
39 | 26 | public function prependMiddleware(MiddlewareInterface $middleware) : MiddlewareAwareInterface |
|
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | */ |
||
49 | 26 | public function shiftMiddleware() : MiddlewareInterface |
|
53 | |||
54 | /** |
||
55 | * {@inheritdoc} |
||
56 | */ |
||
57 | 32 | public function getMiddlewareStack() : iterable |
|
61 | } |
||
62 |