TorClient

This commit is contained in:
R. Eric Wheeler 2016-12-23 14:51:14 -08:00
parent 1dd37f6161
commit 7f0b08c9c8
1 changed files with 54 additions and 0 deletions

54
src/Sikofitt/Tor/Pool.php Normal file
View File

@ -0,0 +1,54 @@
<?php
/**
* Created by PhpStorm.
* User: eric
* Date: 12/23/16
* Time: 12:29 PM
*/
namespace Sikofitt\Tor;
use GuzzleHttp\Client;
use GuzzleHttp\Pool as GuzzlePool;
class Pool
{
/**
* @var \GuzzleHttp\Client
*/
private $client;
private $pool;
/**
* Pool constructor.
*
* @param \GuzzleHttp\Client $client
* @param array $urls
*/
public function __construct(Client $client, $urls = array())
{
$this->client = $client;
$this->pool = new GuzzlePool($this->client, $urls);
$promises = $this->pool->promise();
$promises->wait();
}
public function images() {
}
public function links()
{
}
private function generator()
{
}
private function generate()
{
}
}