Skip to content

使用问题 #3

@guoxiaodong

Description

@guoxiaodong

public function __call($name, $arguments) {
$last = count($arguments)-1;
$dbname = $arguments[$last];
$this->switchDB($dbname);
// unset($arguments[$last]);
$arguments = empty($arguments)? array():$arguments;
return call_user_func_array(array($this,$name),$arguments);
}
为什么unset,unset之后导致提示没有参数,所以我给注释掉

还有
// 惰性加载Redis
\PhalApi\DI()->redis = function () {
return new \PhalApi\Redis\Lite(\PhalApi\DI()->config->get("app.redis.servers"));
}c
最后这c是什么意思

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions