simple-swoole / simps

🚀 A simple, lightweight and high-performance PHP coroutine framework.
https://simps.io
Apache License 2.0
471 stars 48 forks source link

控制器方法的默认的$request, $response参数 #12

Closed easydowork closed 4 years ago

easydowork commented 4 years ago

$request, $response建议成一个组件,不用默认传递这2个参数吧

sy-records commented 4 years ago

这个其实可以从协程上下文获取。现在的话可以继承重写这里,自定义下就好了