/** * Applies config * @return 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; } } }
/** * Detach Connection * @param object $conn Connection * @return void */ public function detach($conn) { parent::detach($conn); $this->touchPending($conn->getUrl()); }
/** * Finishes Generic * @return void */ public function finish() { $this->disable(); $this->close(); $this->pool->detachBound($this); }