gmponos / guzzle-log-middleware

A Guzzle middleware to log request and responses automatically
MIT License
73 stars 24 forks source link

Suggestion to update documentation #7

Closed slavo2 closed 6 years ago

slavo2 commented 6 years ago

I have tried to use guzzle-log-middleware, roughly following the README, however had problem with

Uncaught PHP Exception LogicException: "No handler has been specified"

When I have exchanged

$stack = new HandlerStack(); with $stack = HandlerStack::create();

(Thanks to https://stackoverflow.com/a/32684940 )

my problem was solved.

Suggestion: maybe you might want to update README similarly.

gmponos commented 6 years ago

Thank.. I made the changes.. please check. Let me know if something is not fine.