Manager
in package
Environment Manager
Table of Contents
Properties
- $envVariables : array<string|int, mixed>
- $request : Request|null
Methods
- __construct() : mixed
- canDebug() : bool
- check if debug is active and ip address is valid
- getRequest() : Request|null
- Get the current request
- getVariable() : mixed
- gets env variable
- getVariables() : array<string|int, mixed>
- get env variables
- isCli() : bool
- Check if the current environment is CLI
- isCliServer() : bool
- Check if the current environment is CLI server
- isDebugActive() : bool
- check if debug is active
- isDocker() : bool
- Check if the current environment in on docker
- isWeb() : bool
- Check if the current environment is web
- loadDotEnv() : self
Properties
$envVariables
protected
array<string|int, mixed>
$envVariables
= []
$request
protected
Request|null
$request
= null
Methods
__construct()
public
__construct() : mixed
canDebug()
check if debug is active and ip address is valid
public
canDebug() : bool
Return values
boolgetRequest()
Get the current request
public
getRequest() : Request|null
Return values
Request|nullgetVariable()
gets env variable
public
getVariable(string $variable[, mixed $default = null ]) : mixed
Parameters
- $variable : string
- $default : mixed = null
getVariables()
get env variables
public
getVariables() : array<string|int, mixed>
Return values
array<string|int, mixed>isCli()
Check if the current environment is CLI
public
isCli() : bool
Return values
boolisCliServer()
Check if the current environment is CLI server
public
isCliServer() : bool
Return values
boolisDebugActive()
check if debug is active
public
isDebugActive() : bool
Return values
boolisDocker()
Check if the current environment in on docker
public
isDocker() : bool
Return values
boolisWeb()
Check if the current environment is web
public
isWeb() : bool
Return values
boolloadDotEnv()
protected
loadDotEnv() : self