Installing/Configuring

Tags

  • Use last unstable version (alias of dev-master) to stay always in sync with the last commit
  • Use last stable version tag to stay in a stable release.
  • LatestUnstableVersion LatestStableVersion

Note

Since Symfony2 versions 2.1 and 2.2 are not maintained anymore, and since these branches were in sync with master branch, they both have been deleted

Installing Gearman

To install Gearman Job Server with apt-get use the following commands:

$ sudo apt-get install gearman-job-server

And start server

$ sudo service gearman-job-server start

Then you need to install the Gearman driver using the following command - you will find all available gearman versions in Pear Repository

$ pecl install channel://pecl.php.net/gearman-X.X.X

Finally, you need to register the php module

$ echo "extension=gearman.so" > /etc/php5/conf.d/gearman.ini

Installing GearmanBundle

Install composer if not already done:

$ curl -sS https://getcomposer.org/installer | php

You have to add this bundle as a project requirement:

composer require mmoreram/gearman-bundle "dev-master"

Finally, register both DoctrineCacheBundle & GearmanBundle in your app/AppKernel.php file:

$bundles = [
   // ...
   new Doctrine\Bundle\DoctrineCacheBundle\DoctrineCacheBundle(),
   new Mmoreram\GearmanBundle\GearmanBundle(),
   // ...
];