1 | <?php |
||
33 | abstract class MiddlewareAbstract extends ObjectAbstract implements MiddlewareInterface |
||
34 | { |
||
35 | /** |
||
36 | * Make process logic clear ! |
||
37 | * |
||
38 | * {@inheritDoc} |
||
39 | */ |
||
40 | public function process( |
||
56 | |||
57 | /** |
||
58 | * Doing stuff before calling next middleware |
||
59 | * |
||
60 | * @param RequestInterface $request |
||
61 | * @param ResponseInterface $response |
||
62 | * @access protected |
||
63 | */ |
||
64 | protected function before( |
||
70 | |||
71 | /** |
||
72 | * Doing stuff after next middleware called |
||
73 | * |
||
74 | * @param RequestInterface $request |
||
75 | * @param ResponseInterface $response |
||
76 | * @access protected |
||
77 | */ |
||
78 | protected function after( |
||
84 | } |
||
85 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.