Created
June 23, 2017 10:28
-
-
Save jumper423/f2b6978071b25e40d2c2c4a3d628979d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$di->setShared('queue', function () { | |
$queue = new \Lib\Queue(new \PhpAmqpLib\Connection\AMQPConnection( | |
'rabbitmq', #host - имя хоста, на котором запущен сервер RabbitMQ | |
5672, #port - номер порта сервиса, по умолчанию - 5672 | |
'guest', #user - имя пользователя для соединения с сервером | |
'guest' #password | |
, '/' | |
, 60 | |
)); | |
return $queue; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment