PHP Class Neos\Flow\Utility\Environment

Afficher le fichier Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Свойство Type Description
$context Neos\Flow\Core\ApplicationContext
$request Neos\Flow\Mvc\ActionRequest
$temporaryDirectory string
$temporaryDirectoryBase string The base path of $temporaryDirectory. This property can (and should) be set from outside.

Méthodes publiques

Méthode Description
__construct ( ApplicationContext $context ) Initializes the environment instance.
getContext ( ) : ApplicationContext
getMaximumPathLength ( ) : integer Retrieves the maximum path length that is valid in the current environment.
getPathToTemporaryDirectory ( ) : string Returns the full path to Flow's temporary directory.
isRewriteEnabled ( ) : boolean Whether or not URL rewriting is enabled.
setTemporaryDirectoryBase ( string $temporaryDirectoryBase ) : void Sets the base path of the temporary directory

Méthodes protégées

Méthode Description
createTemporaryDirectory ( string $temporaryDirectoryBase ) : string Creates Flow's temporary directory - or at least asserts that it exists and is writable.

Method Details

__construct() public méthode

Initializes the environment instance.
public __construct ( ApplicationContext $context )
$context Neos\Flow\Core\ApplicationContext The Flow context

createTemporaryDirectory() protected méthode

For each Flow Application Context, we create an extra temporary folder, and for nested contexts, the folders are prefixed with "SubContext" to avoid ambiguity, and look like: Data/Temporary/Production/SubContextLive
protected createTemporaryDirectory ( string $temporaryDirectoryBase ) : string
$temporaryDirectoryBase string Full path to the base for the temporary directory
Résultat string The full path to the temporary directory

getContext() public méthode

public getContext ( ) : ApplicationContext
Résultat Neos\Flow\Core\ApplicationContext

getMaximumPathLength() public méthode

Retrieves the maximum path length that is valid in the current environment.
public getMaximumPathLength ( ) : integer
Résultat integer The maximum available path length

getPathToTemporaryDirectory() public méthode

Returns the full path to Flow's temporary directory.
public getPathToTemporaryDirectory ( ) : string
Résultat string Path to PHP's temporary directory

isRewriteEnabled() public méthode

Whether or not URL rewriting is enabled.
public isRewriteEnabled ( ) : boolean
Résultat boolean

setTemporaryDirectoryBase() public méthode

Sets the base path of the temporary directory
public setTemporaryDirectoryBase ( string $temporaryDirectoryBase ) : void
$temporaryDirectoryBase string Base path of the temporary directory, with trailing slash
Résultat void

Property Details

$context protected_oe property

protected ApplicationContext,Neos\Flow\Core $context
Résultat Neos\Flow\Core\ApplicationContext

$request protected_oe property

protected ActionRequest,Neos\Flow\Mvc $request
Résultat Neos\Flow\Mvc\ActionRequest

$temporaryDirectory protected_oe property

protected string $temporaryDirectory
Résultat string

$temporaryDirectoryBase protected_oe property

The base path of $temporaryDirectory. This property can (and should) be set from outside.
protected string $temporaryDirectoryBase
Résultat string