09/03
2016
dev-master
9999999-devGearman Service Provider for Silex
MIT
The Requires
silex gearman
Wallogit.com
2017 © Pedro Peláez
Gearman Service Provider for Silex
Silex aplication example:, (*2)
use G\Gearman\Client;
use G\GearmanServiceProvider;
use Silex\Application;
$app = new Application();
$app->register(new GearmanServiceProvider());
$app->get("/", function (Client $client) {
return "Hello " . $client->doNormal("worker.example", "Gonzalo");
});
$app->run();
worker example, (*3)
use G\Gearman\Builder;
$worker = Builder::createWorker();
$worker->on("worker.example", function ($response) {
return strrev($response);
});
$worker->run();
Gearman Service Provider for Silex
MIT
silex gearman