| 1 | <?php |
||
| 19 | abstract class DefaultMiddleware extends AbstractMiddleware implements Before, EndSignal |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * Wrapper used by this abstract class to give more flexibility to the |
||
| 23 | * function `execute`. |
||
| 24 | * |
||
| 25 | * Implement it in own child classes to execute the main logic of the |
||
| 26 | * middleware. |
||
| 27 | * |
||
| 28 | * @return void |
||
| 29 | */ |
||
| 30 | abstract protected function process(); |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @todo |
||
| 34 | */ |
||
| 35 | final public function before() |
||
| 39 | } |
||
| 40 | |||
| 41 |