lm / gearmanbundle
Symfony Gearman Client Bundle
dev-master
2014-07-29 10:55 UTC
Requires
- php: >=5.3.2
- symfony/framework-bundle: >=2.1
This package is not auto-updated.
Last update: 2026-03-09 19:51:10 UTC
README
=============== LmGearmanBundle
This library provides a service for implementing a Gearman client: http://github.com/FriendsOfSymfony/FOSRest
INSTALLATION:
-
Prerequisit:
Install the php gearman extension (http://gearman.org/gearman_php_extension) -
in AppKernel
new Lm\GearmanBundle\LmGearmanBundle(), -
in parameters.yml
gearman_host: {ip address of the gearman server}
gearman_port: {port of the gearman server} -
in composer.json
require "lm/gearmanbundle": "dev-master"
USAGE:
In a controller
$gearman = $this->get('gearman');
$reponse=$gearman->doJob(functionName, data);