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
@@ -10,17 +10,21 @@ Lightweight & simple PSR-15 server request handler implementation to handle midd
10
10
11
11
### Description
12
12
13
-
Request handler implementing the [RequestHandlerInterface](https://github.com/php-fig/http-server-handler/blob/master/src/RequestHandlerInterface.php)
14
-
and able to manage a collection of middlewares implementing the [MiddlewareInterface](https://github.com/php-fig/http-server-middleware/blob/master/src/MiddlewareInterface.php).
13
+
PSR-7 Request Handler implementing the [RequestHandlerInterface](https://github.com/php-fig/http-server-handler/blob/master/src/RequestHandlerInterface.php)
14
+
and able to manage a collection of Middlewares implementing the [MiddlewareInterface](https://github.com/php-fig/http-server-middleware/blob/master/src/MiddlewareInterface.php).
15
15
16
-
This request handler attempts to provide interoperability to process a collection of middlewares and
17
-
give the possibility to define the strategy on how middlewares will be processed.
16
+
It comes with a set of middleware collections using different strategy on how to provide the middlewares to the RequestHandler, and also provide a dead simple collection interface to implement in a glimpse your own strategy.
17
+
18
+
### Goals
19
+
20
+
- Simplicity
21
+
- Interoperability
18
22
19
23
### Getting started
20
24
21
25
#### Requirements
22
26
23
-
- PHP 7.3
27
+
- PHP >= 7.3
24
28
25
29
#### Installation
26
30
@@ -38,8 +42,8 @@ Some examples of "default request handler":
38
42
- with the [ADR pattern](https://en.wikipedia.org/wiki/Action%E2%80%93domain%E2%80%93responder), the default request handler might be your action class.
39
43
- with the [MVC pattern](https://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller), the default request handler might be the action method of your controller.
40
44
41
-
It is possible to directly provide a `callable`using the factory method `RequestHandler::fromCallable()`.
42
-
It will generate a generic instance of RequestHandlerInterface wrapping the `callable` inside.
45
+
It is possible to directly provide a `callable`and use the factory method `RequestHandler::fromCallable(callable $callable)`.
46
+
It will create an anonymous instance of RequestHandlerInterface wrapping the given`callable` inside.
0 commit comments