PHP code example of cmobi / rabbitmq-bundle
1. Go to this page and download the library: Download cmobi/rabbitmq-bundle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
cmobi / rabbitmq-bundle example snippets
php
// app/AppKernel.php
public function registerBundles()
{
return array(
new \Cmobi\RabbitmqBundle\CmobiRabbitmqBundle(),
// ...
);
}
yaml
cmobi_rabbitmq:
connections:
default:
host: 172.17.0.1
port: 5672
user: 'guest'
password: 'guest'
vhost: '/'
lazy: false
connection_timeout: 3
read_write_timeout: 3
#