Skip to content

Commit

Permalink
Merge branch 'master' into disable-xdebug-for-things-that-dont-need-it
Browse files Browse the repository at this point in the history
  • Loading branch information
PurpleBooth committed Oct 15, 2016
2 parents 6fc73e3 + 0418a5b commit dfc390b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ composer require fitbug/guzzle-swagger-validation-middleware
Simply add it to the guzzle you use as middleware.

```php
use Fitbug\Guzzle\SwaggerValidation\SwaggerSchemaValidationHandler;
use GuzzleHttp\HandlerStack;
use Http\Adapter\Guzzle6\Client as GuzzleClientFactory;
use Http\Message\MessageFactory\GuzzleMessageFactory;

$this->messageFactory = new GuzzleMessageFactory();
$swaggerFile = 'file://';
$swaggerFile .= '/path/to/your/swagger.json';
Expand Down

0 comments on commit dfc390b

Please sign in to comment.