mpociot / captainhook

Add Webhooks to your Laravel app, arrr
335 stars 26 forks source link

Class GuzzleHttp\Middleware doesn't exist in guzzlehttp/guzzle ~5.3 #35

Closed adamgoose closed 7 years ago

adamgoose commented 8 years ago

In looking at the source for guzzlehttp/guzzle 5.3 (https://github.com/guzzle/guzzle/tree/5.3/src), there is no Middleware class, so it's no surprise that I'm getting a "Class does not exist" exception.

This can be resolved by either dropping support for 5.3 in your composer.json file, or refactoring your usage of the Middleware class to be compliant with 5.3 and 6.

adamgoose commented 8 years ago

Also, installation should have been blocked by incompatible Guzzle versions, but it was not because your guzzlehttp/guzzle requirement is inside require-dev instead of require in your composer.json file.