|
@@ 154-162 (lines=9) @@
|
| 151 |
|
* @return Client\Delay\ClientInterface |
| 152 |
|
* @throws SQLException |
| 153 |
|
*/ |
| 154 |
|
public function delayClient($baseUri, $userAgent, $delay) |
| 155 |
|
{ |
| 156 |
|
switch ($this->driver) { |
| 157 |
|
case self::DRIVER_MYSQL: |
| 158 |
|
$this->initialCheck(self::TABLE_DELAY); |
| 159 |
|
return new Client\Delay\MySQL\Client($this->pdo, $baseUri, $userAgent, $delay); |
| 160 |
|
} |
| 161 |
|
throw new SQLException('Unsupported database. ' . $this->config[self::TABLE_DELAY]['readme']); |
| 162 |
|
} |
| 163 |
|
|
| 164 |
|
/** |
| 165 |
|
* Initial table setup check |
|
@@ 197-205 (lines=9) @@
|
| 194 |
|
* @return Client\Cache\MySQL\Manager |
| 195 |
|
* @throws SQLException |
| 196 |
|
*/ |
| 197 |
|
public function cacheManager(array $curlOptions, $byteLimit) |
| 198 |
|
{ |
| 199 |
|
switch ($this->driver) { |
| 200 |
|
case self::DRIVER_MYSQL: |
| 201 |
|
$this->initialCheck(self::TABLE_CACHE); |
| 202 |
|
return new Client\Cache\MySQL\Manager($this->pdo, $curlOptions, $byteLimit); |
| 203 |
|
} |
| 204 |
|
throw new SQLException('Unsupported database. ' . $this->config[self::TABLE_CACHE]['readme']); |
| 205 |
|
} |
| 206 |
|
|
| 207 |
|
/** |
| 208 |
|
* Delay manager |