Answer the question
In order to leave comments, you need to log in
Yii2 Gearman - is it possible to use static functions?
Is it possible somehow inside yii2 to use the definition of static functions for
<?php
$worker= new GearmanWorker();
$worker->addServer();
$worker->addFunction("reverse", "my_reverse_function");
while ($worker->work());
function my_reverse_function($job)
{
return strrev($job->workload());
}
?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question