改名
This commit is contained in:
@@ -111,6 +111,15 @@ class Snowflake
|
|||||||
return static::$service;
|
return static::$service;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return Application|null
|
||||||
|
*/
|
||||||
|
public static function getFactory(): ?Application
|
||||||
|
{
|
||||||
|
return static::$service;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param $name
|
* @param $name
|
||||||
* @return bool
|
* @return bool
|
||||||
|
|||||||
+1
-2
@@ -4,7 +4,6 @@ defined('APP_PATH') or define('APP_PATH', realpath(__DIR__ . '/../../'));
|
|||||||
|
|
||||||
|
|
||||||
use Annotation\Annotation;
|
use Annotation\Annotation;
|
||||||
use HttpServer\Http\Context;
|
|
||||||
use HttpServer\Http\HttpParams;
|
use HttpServer\Http\HttpParams;
|
||||||
use HttpServer\Http\Request;
|
use HttpServer\Http\Request;
|
||||||
use HttpServer\Http\Response;
|
use HttpServer\Http\Response;
|
||||||
@@ -484,7 +483,7 @@ if (!function_exists('request')) {
|
|||||||
*/
|
*/
|
||||||
function request(): Request
|
function request(): Request
|
||||||
{
|
{
|
||||||
return Context::getContext(Request::class);
|
return Snowflake::getFactory()->get('request');
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user