PHPDaemon\Core\Pool::onConfigUpdated PHP Method

onConfigUpdated() public method

Called when worker is going to update configuration.
public onConfigUpdated ( ) : void
return void
    public function onConfigUpdated()
    {
        if ($this->pool) {
            $this->pool->config = $this->config;
            $this->pool->onConfigUpdated();
        }
    }

Usage Example

Esempio n. 1
0
 /**
  * Called when worker is going to update configuration.
  * @return void
  */
 public function onConfigUpdated()
 {
     if ($this->pool) {
         $this->pool->config = $this->config;
         $this->pool->onConfigUpdated();
     }
 }