PHP 클래스 Thms\Config\Environment

파일 보기 프로젝트 열기: themosis/themosis

보호된 프로퍼티들

프로퍼티 타입 설명
$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