/**
* Applies config
* @return void
*/
protected function applyConfig()
{
parent::applyConfig();
if (isset($this->config->servers)) {
$servers = array_filter(array_map('trim', explode(',', $this->config->servers->value)), 'strlen');
$this->servers = [];
foreach ($servers as $s) {
$this->addServer($s);
}
}
if (isset($this->config->maxconnperserv)) {
$this->maxConnPerServ = $this->config->maxconnperserv->value;
}
}