PHP Класс Webiny\Component\Http\Request\Env

Наследование: use trait Webiny\Component\StdLib\StdLibTrait
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( ) Constructor.
get ( string $key, null $value = null ) : string Get the value from environment variables for the given $key.
getAll ( ) : array Returns a list of all environment variables.

Описание методов

__construct() публичный Метод

Constructor.
public __construct ( )

get() публичный Метод

Get the value from environment variables for the given $key.
public get ( string $key, null $value = null ) : string
$key string Key name.
$value null Default value that will be returned if the $key is not found.
Результат string Value under the defined $key.

getAll() публичный Метод

Returns a list of all environment variables.
public getAll ( ) : array
Результат array