Environment
class Environment (View source)
Abstraction methods which return system environment variables.
Properties
protected ApplicationContext | $context | ||
protected ActionRequest | $request | ||
protected string | $temporaryDirectoryBase | The base path of $temporaryDirectory. This property can (and should) be set from outside. |
|
protected string|null | $temporaryDirectory |
Methods
Sets the base path of the temporary directory
Returns the full path to Flow's temporary directory.
Retrieves the maximum path length that is valid in the current environment.
Whether or not URL rewriting is enabled.
Compose path name for the temporary directory respecting supplied context.
Creates Flow's temporary directory - or at least asserts that it exists and is writable.
No description
Details
__construct(ApplicationContext $context)
Initializes the environment instance.
void
setTemporaryDirectoryBase(string $temporaryDirectoryBase)
Sets the base path of the temporary directory
string
getPathToTemporaryDirectory()
Returns the full path to Flow's temporary directory.
int
getMaximumPathLength()
Retrieves the maximum path length that is valid in the current environment.
bool
isRewriteEnabled()
Whether or not URL rewriting is enabled.
static string
composeTemporaryDirectoryName(string $temporaryDirectoryBase, ApplicationContext $context)
Compose path name for the temporary directory respecting supplied context.
For nested contexts, the folders are prefixed with "SubContext" to avoid ambiguity, and look like: Data/Temporary/Production/SubContextLive
protected string
createTemporaryDirectory(string $temporaryDirectoryBase)
Creates Flow's temporary directory - or at least asserts that it exists and is writable.
For each Flow Application Context, we create an extra temporary folder.
ApplicationContext
getContext()
No description