美文网首页
yii\base\Configurable

yii\base\Configurable

作者: duandaoke | 来源:发表于2018-02-17 09:35 被阅读0次

Configurable is the interface that should be implemented by classes who support configuring its properties through the last parameter to its constructor.
The interface does not declare any method. Classes implementing this interface must declare their constructors
like the following:

public function __constructor($param1, $param2, ..., $config = [])

That is, the last parameter of the constructor must accept a configuration array.

相关文章

网友评论

      本文标题:yii\base\Configurable

      本文链接:https://www.haomeiwen.com/subject/tqemtftx.html