摘要: 一.依据闭包实现一个容器 class Di { private $factory; public function set($id, $value) { $this->factory[$id] = $value; } public function get($id) { $val = $this-> 阅读全文
posted @ 2017-06-24 14:18 rorshach 阅读(4056) 评论(0) 推荐(1)