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;
    }
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;
    }
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 ; }
Initializes the available application contexts and returns them.

@param \AppserverIo\Psr\ApplicationServer\ContainerInterface $container The container we want to add the applications to

@return ContextNode[] The array with the application contexts
Initializes the available application contexts and returns them .