PHPDaemon\Network\Server::applyConfig PHP 메소드

applyConfig() 보호된 메소드

Applies config
protected applyConfig ( ) : void
리턴 void
    protected function applyConfig()
    {
        parent::applyConfig();
        foreach ($this->config as $k => $v) {
            if (is_object($v) && $v instanceof \PHPDaemon\Config\Entry\Generic) {
                $v = $v->getValue();
            }
            $k = strtolower($k);
            if ($k === 'allowedclients') {
                $this->allowedClients = $v;
            }
        }
    }

Usage Example

예제 #1
0
 /**
  * @TODO DESCR
  */
 public function applyConfig()
 {
     parent::applyConfig();
     $this->protologging = (bool) $this->config->protologging->value;
     if (isset($this->client)) {
         $this->client->protologging = $this->protologging;
     }
 }