\Yesf\Config\AdapterYaconf

Summary

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

Properties

$appName

$appName : string

Type

string — Application name

$environment

$environment : string

Type

string — Environment name

$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  $appName = null) 

Constructor

Parameters

string $appName

get()

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

获取配置

Parameters

string $key

形似a.b.c的key

mixed $default

默认

Returns

mixed

getKey()

getKey(string  $key) : string

Get full key

Parameters

string $key

original key

Returns

string