Created
November 18, 2017 13:13
-
-
Save kargirwar/7c42e39d311fcdf0a5ad8186bb32b1da to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function __construct() { | |
# Create our worker object. | |
$this->mWorker = new \GearmanWorker(); | |
# Add default server (localhost). | |
$this->mWorker->addServer(); | |
$this->mWorker->addFunction(Client::JOB_TYPE_REPORT, [$this, "report"]); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment