Yii2 createObject()
2019-08-25 22:23:47 4 举报
AI智能生成
Yii2 createObject
作者其他创作
大纲/内容
if (is_string($type))
static::$container->get($type, $params)
elseif (is_array($type) && isset($type['class']))
$class = $type['class']
static::$container->get($class, $params, $type)
elseif (is_callable($type, true))
static::$container->invoke($type, $params)
0 条评论
下一页