1 | <?php |
||
9 | class ServerPoolClient |
||
10 | { |
||
11 | private static $serverPool = [ |
||
12 | 'https://api.yubico.com/wsapi/2.0/verify', |
||
13 | 'https://api2.yubico.com/wsapi/2.0/verify', |
||
14 | 'https://api3.yubico.com/wsapi/2.0/verify', |
||
15 | 'https://api4.yubico.com/wsapi/2.0/verify', |
||
16 | 'https://api5.yubico.com/wsapi/2.0/verify', |
||
17 | ]; |
||
18 | |||
19 | /** |
||
20 | * @var Client |
||
21 | */ |
||
22 | private $guzzleClient; |
||
23 | |||
24 | /** |
||
25 | * @param Client $guzzleClient |
||
26 | */ |
||
27 | public function __construct(Client $guzzleClient) |
||
31 | |||
32 | /** |
||
33 | * @param array $requestOptions |
||
34 | * @return ResponseInterface |
||
35 | */ |
||
36 | public function get(array $requestOptions) |
||
52 | |||
53 | public function getServerPool() |
||
57 | } |
||
58 |