Beispiel #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;
     }
 }
Beispiel #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();
         });
     }
 }
Beispiel #3
0
 public function onConfigUpdated()
 {
     parent::onConfigUpdated();
 }