摘要: 先标记觉得以后会用到的内容: // add route to the request's attributes in case a middleware or handler needs access to the route $request = $request->withAttribute(' 阅读全文
posted @ 2016-01-27 19:46 浮萍生根 阅读(421) 评论(0) 推荐(0) 编辑
摘要: 上一篇中分析了get()如何加入新的route的,这篇来分析route是如何被调用的。 首先,route是在routers里保存,router有在container中存放。container提供了get()方法获取里面的元素,性质类似于Set()。这个性质见Slim\Container的get()和 阅读全文
posted @ 2016-01-27 17:50 浮萍生根 阅读(594) 评论(0) 推荐(0) 编辑