Env
class Env (View source)
Properties
static protected bool | $putenv | Indicates if the putenv adapter is enabled. |
|
static protected RepositoryInterface|null | $repository | The environment repository instance. |
Methods
static void
enablePutenv()
Enable the putenv adapter.
static void
disablePutenv()
Disable the putenv adapter.
static RepositoryInterface
getRepository()
Get the environment repository instance.
static mixed
get(string $key, mixed $default = null)
Gets the value of an environment variable.
Details
static void
enablePutenv()
Enable the putenv adapter.
static void
disablePutenv()
Disable the putenv adapter.
static RepositoryInterface
getRepository()
Get the environment repository instance.
static mixed
get(string $key, mixed $default = null)
Gets the value of an environment variable.