Check/RabbitMQCollection.php 1 location
|
@@ 20-24 (lines=5) @@
|
| 17 |
|
foreach ($configs as $name => $config) { |
| 18 |
|
if (isset($config['dsn'])) { |
| 19 |
|
$config = array_merge($config, parse_url($config['dsn'])); |
| 20 |
|
if (isset($config['pass'])) { |
| 21 |
|
$config['password'] = $config['pass']; |
| 22 |
|
// Cleanup |
| 23 |
|
unset($config['pass']); |
| 24 |
|
} |
| 25 |
|
if (isset($config['path'])) { |
| 26 |
|
$config['vhost'] = urldecode(substr($config['path'], 1)); |
| 27 |
|
// Cleanup |
Check/RedisCollection.php 1 location
|
@@ 37-45 (lines=9) @@
|
| 34 |
|
$config['password'] = $config['pass']; |
| 35 |
|
// Cleanup |
| 36 |
|
unset($config['pass']); |
| 37 |
|
} elseif (isset($config['user'])) { |
| 38 |
|
/* |
| 39 |
|
* since "redis://my-super-secret-password@redis-host:6379" is a valid redis |
| 40 |
|
* dsn but \parse_url does not understand this notation and extracts the auth as user, |
| 41 |
|
* we need to check for it. |
| 42 |
|
*/ |
| 43 |
|
$config['password'] = $config['user']; |
| 44 |
|
unset($config['user']); |
| 45 |
|
} |
| 46 |
|
} |
| 47 |
|
|
| 48 |
|
public function getChecks() |