Total Complexity | 2 |
Total Lines | 17 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class MiddlewareExecutor |
||
9 | { |
||
10 | /** |
||
11 | * Executes middleware if any are registered, otherwise returns the original request and response. |
||
12 | * |
||
13 | * @param Request $request The incoming HTTP request object. |
||
14 | * @param Response $response The outgoing HTTP response object. |
||
15 | * |
||
16 | * @return array An array containing the (possibly modified) Request and Response objects. |
||
17 | */ |
||
18 | public function execute(Request $request, Response $response): array |
||
27 |