1 | <?php |
||
7 | trait MiddlewareAwareTrait |
||
8 | { |
||
9 | /** |
||
10 | * @var \League\Route\Middleware\Runner |
||
11 | */ |
||
12 | protected $middlewareRunner; |
||
13 | |||
14 | /** |
||
15 | * @var callable[] |
||
16 | */ |
||
17 | protected $middlewareBefore = []; |
||
18 | |||
19 | /** |
||
20 | * @var callable[] |
||
21 | */ |
||
22 | protected $middlewareAfter = []; |
||
23 | |||
24 | /** |
||
25 | * {@inheritdoc} |
||
26 | */ |
||
27 | 24 | public function setMiddlewareRunner(Runner $runner) |
|
31 | |||
32 | /** |
||
33 | * {@inheritdoc} |
||
34 | */ |
||
35 | 36 | public function getMiddlewareRunner() |
|
43 | |||
44 | /** |
||
45 | * {@inheritdoc} |
||
46 | */ |
||
47 | 24 | public function getMiddlewareBeforeQueue() |
|
51 | |||
52 | /** |
||
53 | * {@inheritdoc} |
||
54 | */ |
||
55 | 24 | public function getMiddlewareAfterQueue() |
|
59 | |||
60 | /** |
||
61 | * {@inheritdoc} |
||
62 | */ |
||
63 | 6 | public function before(callable $middleware) |
|
69 | |||
70 | /** |
||
71 | * {@inheritdoc} |
||
72 | */ |
||
73 | 6 | public function after(callable $middleware) |
|
79 | } |
||
80 |