PHP Класс Thms\Config\Environment

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$locations array | Closur\Closure Environment locations.

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

Метод Описание
__construct ( array | Closur\Closure $locations ) Init the Environment class.
which ( string $hostname = '' ) : string Find in which environment we are.

Защищенные методы

Метод Описание
match ( string $host, string $hostname ) : boolean Check if a host is matching a pattern.

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

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

Init the Environment class.
public __construct ( array | Closur\Closure $locations )
$locations array | Closur\Closure Environment locations - Detection.

match() защищенный Метод

Check if a host is matching a pattern.
protected match ( string $host, string $hostname ) : boolean
$host string The regular expression pattern host to use.
$hostname string The host name.
Результат boolean

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

Find in which environment we are.
public which ( string $hostname = '' ) : string
$hostname string The hostname to compare with.
Результат string

Описание свойств

$locations защищенное свойство

Environment locations.
protected array|Closure,Closur $locations
Результат array | Closur\Closure