Skip to content

Commit 6ef1622

Browse files
Follow config.ini file sections
1 parent 1d53453 commit 6ef1622

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

database_server.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
use PhpAmqpLib\Connection\AMQPStreamConnection;
1010
use PhpAmqpLib\Message\AMQPMessage;
1111

12-
$ini = parse_ini_file(__DIR__ . "/config.ini");
12+
$ini = parse_ini_file(__DIR__ . "/config.ini", true);
1313

1414
if ($ini)
1515
[
@@ -18,7 +18,7 @@
1818
"user" => $user,
1919
"password" => $password,
2020
"vhost" => $vhost
21-
] = $ini;
21+
] = $ini["rabbitmq"];
2222
else
2323
die("Failed to parse config.ini");
2424

0 commit comments

Comments
 (0)