Пример #1
0
 /**
  * Return's the prepared server node configuration.
  *
  * @param \AppserverIo\Appserver\Core\Api\Node\ServerNodeInterface $serverNode The server node
  *
  * @return \AppserverIo\Appserver\Core\ServerNodeConfiguration The server node configuration
  */
 protected function getServerNodeConfiguration(ServerNodeInterface $serverNode)
 {
     // override the document root
     $serverNode->setParam('documentRoot', ParamNode::TYPE_STRING, getcwd());
     // add the server node configuration
     return parent::getServerNodeConfiguration($serverNode);
 }
 /**
  * Return's the prepared server node configuration.
  *
  * @param \AppserverIo\Appserver\Core\Api\Node\ServerNodeInterface $serverNode The server node
  *
  * @return \AppserverIo\Appserver\Core\ServerNodeConfiguration The server node configuration
  */
 protected function getServerNodeConfiguration(ServerNodeInterface $serverNode)
 {
     // query whether a server signature (software) has been configured
     if ($serverNode->getParam('software') == null) {
         $serverNode->setParam('software', ParamNode::TYPE_STRING, $this->getService()->getServerSignature());
     }
     // add the server node configuration
     return new ServerNodeConfiguration($serverNode);
 }