Author: Vasily Zorin (maintainer@daemon.io)
Inheritance: extends Pool
Exemplo n.º 1
0
 /**
  * Called when worker is going to update configuration
  * @return void
  */
 public function onConfigUpdated()
 {
     parent::onConfigUpdated();
     if (($order = ini_get('request_order')) || ($order = ini_get('variables_order'))) {
         $this->variablesOrder = $order;
     } else {
         $this->variablesOrder = null;
     }
 }
Exemplo n.º 2
0
 /**
  * Called when worker is going to update configuration
  * @return void
  */
 public function onConfigUpdated()
 {
     parent::onConfigUpdated();
     if (Daemon::$process instanceof \PHPDaemon\Thread\Worker) {
         $pool = $this;
         FileSystem::readfile($this->config->file->value, function ($file, $data) use($pool) {
             $pool->policyData = $data;
             $pool->enable();
         });
     }
 }
Exemplo n.º 3
0
 public function onConfigUpdated()
 {
     parent::onConfigUpdated();
 }
Exemplo n.º 4
0
 /**
  * @TODO DESCR
  */
 public function onReady()
 {
     parent::onReady();
     $this->client->onReady();
     $this->getConnection($this->config->url->value);
 }
Exemplo n.º 5
0
 /**
  * Called when the worker is ready to go.
  * @return void
  */
 public function onReady()
 {
     parent::onReady();
     $this->WS = \PHPDaemon\Servers\WebSocket\Pool::getInstance($this->config->wssname->value, false);
 }