摘要: Lumen有很多实例是通过make()方法实例到容器中的,与bind(),register()有着密切关系 https://laravel-china.org/topics/1372/understanding-of-laravel-implementation-process-five-make 阅读全文
posted @ 2018-09-02 15:29 程序生(Codey) 阅读(491) 评论(0) 推荐(0) 编辑
摘要: 之前一直沒有讲到trait,在此我不得不提一下trait中的优先级: 在trait继承中,优先顺序依次是:来自当前类的成员覆盖了 trait 的方法,而 trait 则覆盖了被继承的方法。 For example: class A{ public function sayHello(){ echo 阅读全文
posted @ 2018-09-02 15:11 程序生(Codey) 阅读(306) 评论(0) 推荐(0) 编辑