国产+高潮+在线,国产 av 仑乱内谢,www国产亚洲精品久久,51国产偷自视频区视频,成人午夜精品网站在线观看

升級Webman-framework v1.3.1 后 Request 被移至 webman-framework 后,而中間件和controller的request必須使用support\ Request,導致Request無法自定義方法

Chuckle

升級Webman-framework v1.3.1 后 Request 被移至 webman-framework 后,而中間件和controller的request必須使用support\ Request,導致Request無法自定義方法,請問有什么其他的方式嗎?

1974 2 1
2個回答

nitron

繼承擴展

  • 暫無評論
walkor 打賞

自定義一個 app/Request.php

<?php
namespace app;

class Request extends \support\Request
{

}

在 config/app.php 里配置

'request_class' => app\Request::class,

這樣就用你自己定義的Request類了。以后升級也不會沖突。

  • flycoo 2022-12-02

    在 config/server.php 里配置會無效, 應(yīng)該在 config/app.php 里配置

年代過于久遠,無法發(fā)表回答
??