yii\base\Configurable

2018-02-17  本文已影响0人  duandaoke

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.

上一篇 下一篇

猜你喜欢

热点阅读