PHPDaemon\Core\Daemon::runWorker PHP Method

runWorker() public static method

Run worker thread
public static runWorker ( ) : void
return void
    public static function runWorker()
    {
        Daemon::$runworkerMode = true;
        $thread = new Thread\Worker();
        $thread();
    }

Usage Example

Beispiel #1
0
 /**
  * Runworker.
  * @return void
  */
 public static function runworker()
 {
     Daemon::log('PLEASE USE runworker COMMAND ONLY FOR DEBUGGING PURPOSES.');
     Daemon::init();
     Daemon::runWorker();
 }