\PhalApi_Config_Yaconf

PhalApi_Config_Yaconf Yaconf扩展配置类

  • 通过Yaconf扩展快速获取配置

使用示例:

<code>
$config = new PhalApi_Config_Yaconf();

var_dump($config->get('foo')); //相当于var_dump(Yaconf::get("foo"));

var_dump($config->has('foo')); //相当于var_dump(Yaconf::has("foo"));
</code>

Summary

Methods
Properties
Constants
get()
has()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

get()

get(  $key, mixed  $default = NULL) : mixed

Get config

Parameters

$key

string config key

mixed $default

config default value

Returns

mixed —

config value, or return $default when config not exists

has()

has(  $key) 

Parameters

$key