Unfortunately there's no manager in the pecl extension. If you want to make use of admin features, check out: http://gearman.org/?id=protocol
Unfortunately there's no manager in the pecl extension. If you want to make use of admin features, check out: http://gearman.org/?id=protocol
You can use this syntax:
<?php
$worker = new GearmanWorker();
$worker->addServer();
$worker->addFunction(new MyClass($test), 'myMethod');
class MyClass
{
public function __construct($test)
{
$this->test = $test;
}
public function myMethod(GearmanJob $job)
{
/ you can access to $this->test;
}
}
Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!
Check out: eBank.nz (Art Generator) |
Netwrck.com (AI Tools) |
Text-Generator.io (AI API) |
BitBank.nz (Crypto AI) |
ReadingTime (Kids Reading) |
RewordGame |
BigMultiplayerChess |
WebFiddle |
How.nz |
Helix AI Assistant