public function init() { if ($this->isEnabled()) { $this->client = \PHPDaemon\Clients\Valve\Pool::getInstance(); $this->db = \MongoClient::getInstance(); $this->servers = $this->db->{$this->config->dbname->value . '.servers'}; } }