Update guzzle to 6.5
This commit is contained in:
parent
bc695cfa15
commit
74db3b9ad0
6 changed files with 144 additions and 86 deletions
|
@ -10,8 +10,7 @@ use Alltube\Exception\EmptyUrlException;
|
|||
use Alltube\Exception\PasswordException;
|
||||
use Exception;
|
||||
use GuzzleHttp\Client;
|
||||
use GuzzleHttp\Exception\GuzzleException;
|
||||
use GuzzleHttp\Psr7\Response;
|
||||
use Psr\Http\Message\ResponseInterface;
|
||||
use stdClass;
|
||||
use Symfony\Component\Process\Process;
|
||||
|
||||
|
@ -615,10 +614,9 @@ class Video
|
|||
*
|
||||
* @param array $headers HTTP headers of the request
|
||||
*
|
||||
* @return Response
|
||||
* @return ResponseInterface
|
||||
* @throws EmptyUrlException
|
||||
* @throws PasswordException
|
||||
* @throws GuzzleException
|
||||
*/
|
||||
public function getHttpResponse(array $headers = [])
|
||||
{
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
namespace Alltube\Stream;
|
||||
|
||||
use GuzzleHttp\Psr7\Response;
|
||||
use Psr\Http\Message\ResponseInterface;
|
||||
use Psr\Http\Message\StreamInterface;
|
||||
|
||||
/**
|
||||
|
@ -18,16 +18,16 @@ class YoutubeChunkStream implements StreamInterface
|
|||
/**
|
||||
* HTTP response containing the video chunk.
|
||||
*
|
||||
* @var Response
|
||||
* @var ResponseInterface
|
||||
*/
|
||||
private $response;
|
||||
|
||||
/**
|
||||
* YoutubeChunkStream constructor.
|
||||
*
|
||||
* @param Response $response HTTP response containing the video chunk
|
||||
* @param ResponseInterface $response HTTP response containing the video chunk
|
||||
*/
|
||||
public function __construct(Response $response)
|
||||
public function __construct(ResponseInterface $response)
|
||||
{
|
||||
$this->response = $response;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue