摘要: providers[$id] = function () use ($val){ return new $val(); }; } //get方法 public function __get($id) { return $this->providers[$id](); } } class User{ ... 阅读全文
posted @ 2018-01-04 10:23 沉默的土豆 阅读(130) 评论(0) 推荐(0) 编辑