Skip to content
This repository was archived by the owner on Sep 3, 2020. It is now read-only.

Commit 8d43b3d

Browse files
author
koliesnik
authored
Merge pull request #2 from PrivateDev/socket
stream to socket
2 parents d5ed6fa + 23382ef commit 8d43b3d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace VladimirYuldashev\LaravelQueueRabbitMQ\Queue\Connectors;
44

55
use Illuminate\Queue\Connectors\ConnectorInterface;
6-
use PhpAmqpLib\Connection\AMQPStreamConnection;
6+
use PhpAmqpLib\Connection\AMQPSocketConnection;
77
use VladimirYuldashev\LaravelQueueRabbitMQ\Queue\RabbitMQQueue;
88

99
class RabbitMQConnector implements ConnectorInterface
@@ -18,7 +18,7 @@ class RabbitMQConnector implements ConnectorInterface
1818
public function connect(array $config)
1919
{
2020
// create connection with AMQP
21-
$connection = new AMQPStreamConnection(
21+
$connection = new AMQPSocketConnection(
2222
$config['host'],
2323
$config['port'],
2424
$config['login'],

src/VladimirYuldashev/LaravelQueueRabbitMQ/Queue/RabbitMQQueue.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Illuminate\Contracts\Queue\Queue as QueueContract;
77
use Illuminate\Queue\Queue;
88
use PhpAmqpLib\Channel\AMQPChannel;
9-
use PhpAmqpLib\Connection\AMQPStreamConnection;
9+
use PhpAmqpLib\Connection\AMQPSocketConnection;
1010
use PhpAmqpLib\Message\AMQPMessage;
1111
use PhpAmqpLib\Wire\AMQPTable;
1212
use VladimirYuldashev\LaravelQueueRabbitMQ\Queue\Jobs\RabbitMQJob;
@@ -41,10 +41,10 @@ class RabbitMQQueue extends Queue implements QueueContract
4141
private $correlationId;
4242

4343
/**
44-
* @param AMQPStreamConnection $amqpConnection
44+
* @param AMQPSocketConnection $amqpConnection
4545
* @param array $config
4646
*/
47-
public function __construct(AMQPStreamConnection $amqpConnection, $config)
47+
public function __construct(AMQPSocketConnection $amqpConnection, $config)
4848
{
4949
$this->connection = $amqpConnection;
5050
$this->defaultQueue = $config['queue'];

0 commit comments

Comments
 (0)