Skip to content

Commit 9a0f9bd

Browse files
authored
Update README.md
1 parent f188490 commit 9a0f9bd

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,21 +34,21 @@ It comes with a set of middleware collections using different strategy on how to
3434

3535
Instantiate the RequestHandler class. It requires ony 2 arguments:
3636

37-
- `$defaultRequestHandler` : [RequestHandlerInterface](https://github.com/php-fig/http-server-handler/blob/master/src/RequestHandlerInterface.php)
37+
- ***`$defaultRequestHandler`*** : [RequestHandlerInterface](https://github.com/php-fig/http-server-handler/blob/master/src/RequestHandlerInterface.php)
3838

39-
***The default request handler MUST provide a default response if none of the middlewares created one.***
39+
***The default request handler MUST provide a default response if none of the middlewares created one.***
4040

41-
Some examples of what could be a "default request handler":
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.
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.
41+
Some examples of what could be a "default request handler":
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.*
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.
4444

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.
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.
4747

48-
- `$middlewareCollection` : [MiddlewareCollectionInterface](https://github.com/noglitchyo/middleware-collection-request-handler/blob/master/src/MiddlewareCollectionInterface.php)
48+
- ***`$middlewareCollection`*** : [MiddlewareCollectionInterface](https://github.com/noglitchyo/middleware-collection-request-handler/blob/master/src/MiddlewareCollectionInterface.php)
4949

50-
Contains the middlewares and defines the strategy used to store the middlewares and to retrieve the next middleware.
51-
Some implementations with common strategies are provided: [stack (LIFO)](https://github.com/noglitchyo/middleware-collection-request-handler/blob/master/src/Collection/SplStackMiddlewareCollection.php), [queue (FIFO)](https://github.com/noglitchyo/middleware-collection-request-handler/blob/master/src/Collection/SplQueueMiddlewareCollection.php).
50+
Contains the middlewares and defines the strategy used to store the middlewares and to retrieve the next middleware.
51+
Some implementations with common strategies are provided: [stack (LIFO)](https://github.com/noglitchyo/middleware-collection-request-handler/blob/master/src/Collection/SplStackMiddlewareCollection.php), [queue (FIFO)](https://github.com/noglitchyo/middleware-collection-request-handler/blob/master/src/Collection/SplQueueMiddlewareCollection.php).
5252

5353
##### Example
5454

0 commit comments

Comments
 (0)