B
B
bizzonaru2016-02-11 12:36:47
Yii
bizzonaru, 2016-02-11 12:36:47

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 question

Ask a Question

731 491 924 answers to any question