public function merge(ContainerConfigurationInterface $containerNode)
    {
        // iterate over this container server nodes
        /** @var \AppserverIo\Appserver\Core\Api\Node\ServerNodeInterface $serverNode */
        foreach ($this->getServers() as $serverNode) {
            // try to match with the server names of the passed container
            /** @var \AppserverIo\Appserver\Core\Api\Node\ServerNodeInterface $serverNodeToMerge */
            foreach ($containerNode->getServers() as $serverNodeToMerge) {
                if (fnmatch($serverNodeToMerge->getName(), $serverNode->getName())) {
                    $serverNode->merge($serverNodeToMerge);
                } else {
                    $this->attachServer($serverNode);
                }
            }
        }
    }
public function merge(ContainerConfigurationInterface $containerNode)
    {
        // iterate over this container server nodes
        /** @var \AppserverIo\Appserver\Core\Api\Node\ServerNodeInterface $serverNode */
        foreach ($this->getServers() as $serverNode) {
            // try to match with the server names of the passed container
            /** @var \AppserverIo\Appserver\Core\Api\Node\ServerNodeInterface $serverNodeToMerge */
            foreach ($containerNode->getServers() as $serverNodeToMerge) {
                if (fnmatch($serverNodeToMerge->getName(), $serverNode->getName())) {
                    $serverNode->merge($serverNodeToMerge);
                } else {
                    $this->attachServer($serverNode);
                }
            }
        }
    }
public function merge ( ContainerConfigurationInterface $ containerNode ) { // iterate over this container server nodes /** @var \AppserverIo\Appserver\Core\Api\Node\ServerNodeInterface $serverNode */ foreach ( $ this -> getServers ( ) as $ serverNode ) { // try to match with the server names of the passed container /** @var \AppserverIo\Appserver\Core\Api\Node\ServerNodeInterface $serverNodeToMerge */ foreach ( $ containerNode -> getServers ( ) as $ serverNodeToMerge ) { if ( fnmatch ( $ serverNodeToMerge -> getName ( ) , $ serverNode -> getName ( ) ) ) { $ serverNode -> merge ( $ serverNodeToMerge ) ; } else { $ this -> attachServer ( $ serverNode ) ; } } } }
This method merges the passed container node into this one.

@param \AppserverIo\Psr\ApplicationServer\Configuration\ContainerConfigurationInterface $containerNode The container node to merge

@return void
This method merges the passed container node into this one .