Skip to content

Commit

Permalink
Update read me
Browse files Browse the repository at this point in the history
  • Loading branch information
kocsismate committed Feb 2, 2018
1 parent ad213b5 commit a59c4c5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down

0 comments on commit a59c4c5

Please sign in to comment.