-
Notifications
You must be signed in to change notification settings - Fork 4
Installation & Setup
Add the following to your composer.json
:
{
"require": {
"oggettoweb/messenger": "dev-master"
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/OggettoWeb/messenger"
}
],
"extra": {
"magento-root-dir": ".",
"magento-deploystrategy": "copy"
}
}
Then install:
$ php composer.phar install
Messenger bin files should be writeable:
$ chmod +x shell/messenger/bin/*
Possibly you may want to add the following to .gitignore
to prevent module code from being committed:
/app/code/local/Oggetto/Messenger/
/shell/messenger/
Just download source code and copy it to your Magento directory. Also, download all dependancies listed in composer.json
and require them.
Messenger module depends on Zend\StdLib
, which in turn depends on PECL weakref module, so you better install it.
Common issue when installing WeakRef is missing libpcre3-dev
library, so install it before:
$ apt-get install libpcre3-dev
$ pecl install channel://pecl.php.net/weakref-0.2.2
By default messenger works with RabbitMQ so you should install it.
Theoretically, any other AMQP server should work, but module has been tested only with RabbitMQ.
Once module is installed you should setup RabbitMQ connection:
- Login to Magento admin
- Go to System / Configuration
- Find
Messenger Setup
tab on the left - Expand "RabbitMQ" fieldset and enter connection details.