This commit is contained in:
2020-10-29 18:17:25 +08:00
parent 6839b64be8
commit 53ae43b79b
198 changed files with 708 additions and 850 deletions
+17 -1
View File
@@ -3,6 +3,7 @@
defined('APP_PATH') or define('APP_PATH', __DIR__ . '/../../');
use HttpServer\Http\Response;
use HttpServer\Route\Router;
use Snowflake\Error\Logger;
use Snowflake\Exception\ComponentException;
use Snowflake\Snowflake;
@@ -405,7 +406,7 @@ if (!function_exists('name')) {
/**
* @param string $name
*/
function name($name)
function name(string $name)
{
swoole_set_process_name($name);
}
@@ -505,6 +506,21 @@ if (!function_exists('merge')) {
}
if (!function_exists('router')) {
/**
* @return Router
* @throws ComponentException
*/
function router()
{
return Snowflake::app()->getRouter();
}
}
if (!function_exists('jTraceEx')) {
/**