PATH_DOCUMENT_ROOT
PATH_DOCUMENT_ROOT
For use with usePath() - Represents the apache document root
$environment : \duncan3dc\Env\EnvironmentInterface
path( $append, integer|string $use = null) : string
Get an absolute path for the specified relative path (relative to the currently used internal root path).
$append | ||
integer|string | $use | Either one of the PATH class constants or an actual path to a directory that exists, and is readable |
setEnvironment(\duncan3dc\Env\EnvironmentInterface $environment) : void
Set the instance to use for environment variables/
\duncan3dc\Env\EnvironmentInterface | $environment | The instance to use. |
getEnvironment() : \duncan3dc\Env\EnvironmentInterface
Get the instance to use for environment variables.
realpath(string $append) : string
Get an absolute path for the specified relative path, convert symlinks to a canonical path, and check the path exists.
This method is very similar to path() except the result is then run through php's standard realpath() function.
string | $append | The relative path to append to the root path |