X-Git-Url: https://git.cweiske.de/shpub.git/blobdiff_plain/d02372dcd39d2581b9b64828406a1f604a8cb347..af315313a912ec99a2539bc79df68f502fdd8000:/src/shpub/Config/Host.php diff --git a/src/shpub/Config/Host.php b/src/shpub/Config/Host.php index 5dd23dd..51d0ff5 100644 --- a/src/shpub/Config/Host.php +++ b/src/shpub/Config/Host.php @@ -37,5 +37,20 @@ class Config_Host * @var boolean */ public $default; + + public function __construct() + { + $this->endpoints = new Config_Endpoints(); + } + + public function loadEndpoints() + { + $this->endpoints = new Config_Endpoints(); + $this->endpoints->load($this->server); + if ($this->endpoints->incomplete()) { + $this->endpoints->discover($this->server); + $this->endpoints->save($this->server); + } + } } ?>