webman不支持在控制器中定義中間件,因為遷移tp代碼自己實現(xiàn)了控制器中間件支持,分享同時也請大家指點指點。 貼代碼: 首先創(chuàng)建自己的控制器中間件接口 <?php namespace app\common\middleware; use Webman\Http\Request; use Webman\Http\Response; interface ControllerMiddlewareInterfa...