Property | Type | Description | |
---|---|---|---|
$initialContext | The initial context instance containing the system configuration. | ||
$node | AppserverIo\Configuration\Interfaces\NodeInterface; | The initialized base directory node. | |
$normalizer | AppserverIo\Appserver\Core\Api\NormalizerInterface | The normalizer instance to use. |
Method | Description | |
---|---|---|
__construct ( |
Initializes the service with the initial context instance and the default normalizer instance. | |
getBaseDirectory ( string | null $directoryToAppend = null ) : string | Returns the application servers base directory. | |
getConfDir ( string $relativePathToAppend = '' ) : string | Return's the server's main configuration directory. | |
getConfdDir ( string $relativePathToAppend = '' ) : string | Return's the server's configuration subdirectory. | |
getDeployDir ( AppserverIo\Appserver\Core\Api\Node\ContainerNodeInterface $containerNode, string $relativePathToAppend = '' ) : string | Returns the servers deploy directory. | |
getDirectories ( ) : array | Returns the directory structure to be created at first start. | |
getEtcDir ( string $relativePathToAppend = '' ) : string | Return's the server's base configuration directory. | |
getFiles ( ) : array | Returns the files to be created at first start. | |
getInitialContext ( ) : |
(non-PHPdoc) | |
getLogDir ( string $relativePathToAppend = '' ) : string | Returns the servers log directory. | |
getOsIdentifier ( ) : string | Will return a three character OS identifier e.g. WIN or LIN | |
getServerSignature ( ) : string | Returns the real server signature depending on the installed appserver version and the PHP version we're running on, for example: | |
getSystemConfiguration ( ) : AppserverIo\Appserver\Core\Interfaces\SystemConfigurationInterface | (non-PHPdoc) | |
getSystemProperties ( AppserverIo\Appserver\Core\Api\Node\ContainerNodeInterface $containerNode = null ) : AppserverIo\Properties\Properties | Returns the system proprties. If a container node has been passed, the container properties will also be appended. | |
getSystemTmpDir ( string $relativePathToAppend = '' ) : string | Return's the system's temporary directory. | |
getTmpDir ( AppserverIo\Appserver\Core\Api\Node\ContainerNodeInterface $containerNode, string $relativePathToAppend = '' ) : string | Returns the servers tmp directory, append with the passed directory. | |
getWebappsDir ( AppserverIo\Appserver\Core\Api\Node\ContainerNodeInterface $containerNode, string $relativePathToAppend = '' ) : string | Returns the servers webapps directory. | |
globDir ( string $pattern, integer $flags, boolean $recursive = true ) : array | Parses and returns the directories and files that matches the passed glob pattern in a recursive way (if wanted). | |
makePathAbsolute ( string $path = '' ) : string | Makes the path an absolute path or returns null if passed path is empty. | |
newInstance ( string $className, array $args = [] ) : object | (non-PHPdoc) | |
newService ( string $className ) : AppserverIo\Appserver\Core\Api\ServiceInterface | (non-PHPdoc) | |
persist ( AppserverIo\Configuration\Interfaces\NodeInterface $node ) : void | Persists the system configuration. | |
realpath ( string $relativePathToAppend ) : string | Returns the absolute path to the passed directory, also working on Windows. | |
setSystemConfiguration ( AppserverIo\Appserver\Core\Interfaces\SystemConfigurationInterface $systemConfiguration ) : AppserverIo\Appserver\Core\Api\ServiceInterface | (non-PHPdoc) |
public __construct ( |
||
$initialContext | The initial context instance |
public getConfDir ( string $relativePathToAppend = '' ) : string | ||
$relativePathToAppend | string | A relative path to append |
return | string | The server's main configuration directory |
public getConfdDir ( string $relativePathToAppend = '' ) : string | ||
$relativePathToAppend | string | A relative path to append |
return | string | The server's configuration subdirectory |
public getDeployDir ( AppserverIo\Appserver\Core\Api\Node\ContainerNodeInterface $containerNode, string $relativePathToAppend = '' ) : string | ||
$containerNode | AppserverIo\Appserver\Core\Api\Node\ContainerNodeInterface | The container to return the deployment directory for |
$relativePathToAppend | string | A relative path to append |
return | string |
public getDirectories ( ) : array | ||
return | array | The directory structure to be created if necessary |
public getInitialContext ( ) : |
||
return | The initial Context |
public getOsIdentifier ( ) : string | ||
return | string |
public getServerSignature ( ) : string | ||
return | string | The server signature |
public getSystemConfiguration ( ) : AppserverIo\Appserver\Core\Interfaces\SystemConfigurationInterface | ||
return | AppserverIo\Appserver\Core\Interfaces\SystemConfigurationInterface | The system configuration |
public getSystemProperties ( AppserverIo\Appserver\Core\Api\Node\ContainerNodeInterface $containerNode = null ) : AppserverIo\Properties\Properties | ||
$containerNode | AppserverIo\Appserver\Core\Api\Node\ContainerNodeInterface | The container to return the system properties for |
return | AppserverIo\Properties\Properties | The system properties |
public getSystemTmpDir ( string $relativePathToAppend = '' ) : string | ||
$relativePathToAppend | string | A relative path to append |
return | string | The system's temporary directory |
public getTmpDir ( AppserverIo\Appserver\Core\Api\Node\ContainerNodeInterface $containerNode, string $relativePathToAppend = '' ) : string | ||
$containerNode | AppserverIo\Appserver\Core\Api\Node\ContainerNodeInterface | The container to return the temporary directory for |
$relativePathToAppend | string | A relative path to append |
return | string |
public getWebappsDir ( AppserverIo\Appserver\Core\Api\Node\ContainerNodeInterface $containerNode, string $relativePathToAppend = '' ) : string | ||
$containerNode | AppserverIo\Appserver\Core\Api\Node\ContainerNodeInterface | The container to return the temporary directory for |
$relativePathToAppend | string | A relative path to append |
return | string |
public globDir ( string $pattern, integer $flags, boolean $recursive = true ) : array | ||
$pattern | string | The glob pattern used to parse the directories |
$flags | integer | The flags passed to the glob function |
$recursive | boolean | Whether or not to parse directories recursively |
return | array | The directories matches the passed glob pattern |
public makePathAbsolute ( string $path = '' ) : string | ||
$path | string | A path to absolute |
return | string | The absolute path |
public newService ( string $className ) : AppserverIo\Appserver\Core\Api\ServiceInterface | ||
$className | string | The API service class name to return the instance for |
return | AppserverIo\Appserver\Core\Api\ServiceInterface | The service instance |
public setSystemConfiguration ( AppserverIo\Appserver\Core\Interfaces\SystemConfigurationInterface $systemConfiguration ) : AppserverIo\Appserver\Core\Api\ServiceInterface | ||
$systemConfiguration | AppserverIo\Appserver\Core\Interfaces\SystemConfigurationInterface | The system configuration |
return | AppserverIo\Appserver\Core\Api\ServiceInterface |
protected InitialContext,AppserverIo\Appserver\Core $initialContext | ||
return |
protected NodeInterface;,AppserverIo\Configuration\Interfaces $node | ||
return | AppserverIo\Configuration\Interfaces\NodeInterface; |