mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 15:12:48 +08:00
App类的run方法参数为可选
This commit is contained in:
@@ -32,12 +32,14 @@ class App
|
|||||||
/**
|
/**
|
||||||
* 执行应用程序
|
* 执行应用程序
|
||||||
* @access public
|
* @access public
|
||||||
* @param \think\Request $request Request对象
|
* @param null|\think\Request $request Request对象
|
||||||
* @return mixed
|
* @return mixed
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
public static function run($request)
|
public static function run($request = null)
|
||||||
{
|
{
|
||||||
|
is_null($request) && $request = Request::instance();
|
||||||
|
|
||||||
// 初始化应用(公共模块)
|
// 初始化应用(公共模块)
|
||||||
$config = self::initModule(COMMON_MODULE, Config::get());
|
$config = self::initModule(COMMON_MODULE, Config::get());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user