Skip to content

Commit ee1e74a

Browse files
committed
migrate from pecl extension to php amqp lib
1 parent 105d546 commit ee1e74a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/FintechFab/LaravelQueueRabbitMQ/Queue/Connectors/RabbitMQConnector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class RabbitMQConnector implements ConnectorInterface
1717
public function connect(array $config)
1818
{
1919
// create connection with AMQP
20-
$connection = new AMQPConnection($config['host'], $config['port'], $config['login'], $config['password']);
20+
$connection = new AMQPConnection($config['host'], $config['port'], $config['login'], $config['password'], $config['vhost']);
2121

2222
return new RabbitMQQueue(
2323
$connection,

src/examples/queue.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
'driver' => 'rabbitmq',
1616

1717
'host' => '',
18-
'port' => '',
18+
'port' => 5672,
1919

20-
'vhost' => '',
20+
'vhost' => '/',
2121
'login' => '',
2222
'password' => '',
2323

0 commit comments

Comments
 (0)