\Yesf\Config\AdapterYaf

Summary

Methods
Properties
Constants
__get()
__isset()
has()
__construct()
get()
No public properties found
No constants found
No protected methods found
$environment
$conf
N/A
No private methods found
$replace
N/A

Properties

$environment

$environment : string

Type

string — Environment name

$conf

$conf : array

Type

array — Configs

$replace

$replace : 

Type

Methods

__get()

__get(  $k) 

魔术方法,方便调用

Parameters

$k

__isset()

__isset(  $k) 

Parameters

$k

has()

has(string  $key) : boolean

检查配置是否存在

Parameters

string $key

形似a.b.c的key

Returns

boolean

__construct()

__construct(string  $file) 

Constructor

Parameters

string $file

get()

get(string  $key, mixed  $default = null) : mixed

获取配置

Parameters

string $key

形似a.b.c的key

mixed $default

默认

Returns

mixed