AppserverIo\Appserver\Core\Interfaces\ContainerInterface::getContainerNode PHP Method

getContainerNode() public method

Returns the containers configuration node.
public getContainerNode ( ) : ContainerNode
return AppserverIo\Appserver\Core\Api\Node\ContainerNode The configuration node
    public function getContainerNode();

Usage Example

 /**
  * Initializes the available application contexts and returns them.
  *
  * @param \AppserverIo\Appserver\Core\Interfaces\ContainerInterface $container The container we want to add the applications to
  *
  * @return ContextNode[] The array with the application contexts
  */
 public function loadContextInstancesByContainer(ContainerInterface $container)
 {
     // initialize the array for the context instances
     $contextInstances = array();
     // iterate over all applications and create the context configuration
     foreach (glob($container->getAppBase() . '/*', GLOB_ONLYDIR) as $webappPath) {
         $context = $this->loadContextInstance($container->getContainerNode(), $webappPath);
         $contextInstances[$context->getName()] = $context;
     }
     // return the array with the context instances
     return $contextInstances;
 }
All Usage Examples Of AppserverIo\Appserver\Core\Interfaces\ContainerInterface::getContainerNode