kleiram / transmission-php

PHP Transmission API client
Other
184 stars 62 forks source link

Broken if "kriswallsmith/buzz" > 0.16.1 #74

Open maxixcom opened 6 years ago

maxixcom commented 6 years ago

It seems there are some changes in Buzz API(https://github.com/kriswallsmith/Buzz) since 0.17. That's why transmission-php is broken now. It fails with message about missing class Buzz\Message\Request now. But everything is fine in versions 0.16.x. Let's make restriction up to this version.

candasm commented 5 years ago

Also because of curl send method which is deprecated in buzz package client class, setClient prompts an deprecated error.

divinity76 commented 5 years ago

a backwards-compatible quick-fix is to simply give the connecting host address to Client in the constructor,

eg:

$auth = new Client("example.org");

instead of

$auth = new Client();
ParitoshBh commented 5 years ago

Made changes to use version 0.15.2 of buzz dependency. Here's the forked repo