AppserverIo\Appserver\Core\Api\Node\ContainerNodeInterface::getHost PHP Method

getHost() public method

Returns the host configuration information.
public getHost ( ) : HostNode
return HostNode The host configuration information
    public function getHost();

Usage Example

 /**
  * Returns the container's webapps directory.
  *
  * @param \AppserverIo\Appserver\Core\Api\Node\ContainerInterface $containerNode        The container to return the temporary directory for
  * @param string                                                  $relativePathToAppend A relative path to append
  *
  * @return string The web application directory
  */
 public function getWebappsDir(ContainerNodeInterface $containerNode, $relativePathToAppend = '')
 {
     return $this->getService()->realpath($this->getService()->makePathAbsolute($containerNode->getHost()->getAppBase() . $this->getService()->makePathAbsolute($relativePathToAppend)));
 }