/** * DocumentRoot * * @return string */ public function getDocumentRoot() { if ($this->isSubDomain()) { $root = $this->subdomain->getFullPath(); } else { $root = $this->domain->getFullWebrootPath(); } return $root; }