TorClient
This commit is contained in:
parent
1dd37f6161
commit
7f0b08c9c8
|
@ -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()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue