use support\request;
protected $requst = null;
public function __construct(request $request)
{
$this->request = $request;
}
上面寫法會報錯
ArgumentCountError: Too few arguments to function app\controller\Login::__construct(), 0 passed in /www/wwwroot/webman/vendor/workerman/webman-framework/src/Container.php on line 30 and exactly 1 expected in /www/wwwroot/webman/app/controller/Login.php:21