yii\base\Configurable

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.

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • NAME dnsmasq - A lightweight DHCP and caching DNS server....
    ximitc阅读 7,965评论 0 0
  • Correctness AdapterViewChildren Summary: AdapterViews can...
    MarcusMa阅读 12,879评论 0 6
  • { "Unterminated string literal.": "未终止的字符串文本。", "Identifi...
    栗子雨阅读 12,425评论 0 3
  • 很多时候,我认为自己是个乐观的人。但最近找工作真的把我累惨了,我既不能公然喊累,又不能表现出一丢的丧气。死要面子,...
    阿灿_阅读 1,301评论 0 0
  • [黑] 冰凌里的晶莹 是冬天眼里的星星 [黄] 在萧索的风中依旧灿烂 把金黄留给最爱的秋 [绿] 渐变的夏天 [红...
    解暑阅读 2,962评论 0 3

友情链接更多精彩内容