Skip to content

Commit

Permalink
Merge pull request phpro#59 from schlessera/patch-1
Browse files Browse the repository at this point in the history
Adapt to immutable PSR-7 method `withBody()`
  • Loading branch information
veewee authored Aug 16, 2017
2 parents 433d75f + 2a8de5f commit 0142628
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/middlewares.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ $xml->registerNamespace('alias', 'http://alias');
$xml->xpath('/soap:Envelope')->item(0);

// Use the manipulated XML in your PSR7 request or response:
$request->setBody($xml->toStream())
$request = $request->withBody($xml->toStream())
```

As you can see, this XML manipulation class is rather small at the moment but is super powerful.
Expand Down

0 comments on commit 0142628

Please sign in to comment.