diff --git a/README.md b/README.md index d3a8b0f..a58ebab 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ To install the latest version of this library, run the command below: $ composer require woohoolabs/yin-middleware ``` -Yin Middleware requires PHP 7.1 at least. You may use Yin Middleware 2.0 for PHP 7.0 and 1.0 for PHP 5.6. +Yin Middleware requires PHP 7.1 at least. You may use Yin Middleware 2.0.0 for PHP 7.0. ## Basic Usage @@ -70,6 +70,11 @@ and many other frameworks. The following sections will guide you through how to use and configure the provided middleware. +> Note: When passing a `ServerRequestInterface` instance to your middleware dispatcher, a +`WoohooLabs\Yin\JsonApi\Request\RequestInterface` instance must be used in fact (the `WoohooLabs\Yin\JsonApi\Request\Request` +class possibly), otherwise the `JsonApiDispatcherMiddleware` and the `JsonApiExceptionHandlerMiddleware` will throw an +exception. + ### JsonApiRequestValidatorMiddleware The middleware is mainly useful in a development environment, and it is able to validate a