AppserverIo\Appserver\Core\Interfaces\ContainerInterface::getAppBase PHP Метод

getAppBase() публичный Метод

The application base directory for this container
public getAppBase ( ) : string
Результат string The application base directory for this container
    public function getAppBase();

Usage Example

Пример #1
0
 /**
  * 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::getAppBase