@@ 252-259 (lines=8) @@ | ||
249 | * |
|
250 | * @return string |
|
251 | */ |
|
252 | private function pgsql(array $config) |
|
253 | { |
|
254 | $host = (string) $config["host"]; |
|
255 | $port = (int) $config["port"]; |
|
256 | $database = (string) $config["database"]; |
|
257 | ||
258 | return "pgsql:host={$host};port={$port};dbname={$database}"; |
|
259 | } |
|
260 | ||
261 | /** |
|
262 | * @param array $config |
|
@@ 278-285 (lines=8) @@ | ||
275 | * |
|
276 | * @return string |
|
277 | */ |
|
278 | private function sqlsrv(array $config) |
|
279 | { |
|
280 | $host = (string) $config["host"]; |
|
281 | $port = (int) $config["port"]; |
|
282 | $database = (string) $config["database"]; |
|
283 | ||
284 | return "sqlsrv:Server={$host},{$port};Database={$database}"; |
|
285 | } |
|
286 | ||
287 | /** |
|
288 | * @inheritdoc |