lm/gearmanbundle

Symfony Gearman Client Bundle

Installs: 208

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:symfony-bundle

dev-master 2014-07-29 10:55 UTC

This package is not auto-updated.

Last update: 2024-12-16 14:07:38 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);