You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is an implementation of [PSR-15](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-15-request-handlers.md) using the proposed Interface packages [psr/http-server-middleware](https://github.com/php-fig/http-server-middleware) and [psr/http-server-handler](https://github.com/php-fig/http-server-handler) for PHP7+ runtime environment.
8
+
This is an implementation of [PSR-15](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-15-request-handlers.md) using the proposed Interface packages [psr/http-server-middleware](https://github.com/php-fig/http-server-middleware)
9
+
and [psr/http-server-handler](https://github.com/php-fig/http-server-handler) for PHP ^8.1 runtime environment.
8
10
9
11
It enables a sequential execution of middlewares that use a PSR-7 conform Response/Request implementation.
10
12
@@ -14,9 +16,10 @@ It enables a sequential execution of middlewares that use a PSR-7 conform Respon
**idealo/php-middleware-stack** provides the ```Idealo\Middleware\Stack``` class. All it has to know in order to be instantiable is:
37
+
38
+
**idealo/php-middleware-stack** provides the ```Idealo\Middleware\Stack``` class. All it has to know in order to be
39
+
instantiable is:
40
+
35
41
* an instance of ```Psr\Http\Message\ResponseInterface``` as the default response
36
42
* and middlewares, that implement the ```Psr\Http\Server\MiddlewareInterface```
37
43
38
44
To perform a sequential processing of injected middlewares you have to call stack's ```handle``` method with:
45
+
39
46
* an instance of ```Psr\Http\Message\ServerRequestInterface```.
40
47
41
-
By default stack's ```handle``` method returns the injected response object. If any middleware decides to answer on it's own, than the response object of this certain middleware is returned.
48
+
By default stack's ```handle``` method returns the injected response object. If any middleware decides to answer on it's
49
+
own, than the response object of this certain middleware is returned.
0 commit comments