Skip to content

Commit

Permalink
Merge branch 'master' of ssh://git.swoole.com:2222/swoole/library
Browse files Browse the repository at this point in the history
  • Loading branch information
matyhtf committed Oct 22, 2021
2 parents 5c67185 + 47511b3 commit bec0dfe
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions src/core/Server/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ public static function start(Server $server)
* @param $msg
* @return false|string
*/
private static function handlerGetResources($server, $msg)
public static function handlerGetResources($server, $msg)
{
$resources = get_resources();
$list = [];
Expand All @@ -538,7 +538,7 @@ private static function handlerGetResources($server, $msg)
* @param $msg
* @return false|string
*/
private static function handlerGetWorkerInfo($server, $msg)
public static function handlerGetWorkerInfo($server, $msg)
{
$info = [
'id' => $server->getWorkerId(),
Expand All @@ -561,7 +561,7 @@ private static function handlerGetWorkerInfo($server, $msg)
* @param $msg
* @return false|string
*/
private static function handlerCloseSession($server, $msg)
public static function handlerCloseSession($server, $msg)
{
$json = json_decode($msg, true);
if (empty($json['session_id'])) {
Expand All @@ -578,7 +578,7 @@ private static function handlerCloseSession($server, $msg)
* @param $msg
* @return false|string
*/
private static function handlerGetTimerList($server, $msg)
public static function handlerGetTimerList($server, $msg)
{
$list = [];
foreach (Timer::list() as $timer_id) {
Expand All @@ -596,7 +596,7 @@ private static function handlerGetTimerList($server, $msg)
* @param $msg
* @return false|string
*/
private static function handlerGetCoroutineList($server, $msg)
public static function handlerGetCoroutineList($server, $msg)
{
$list = [];
foreach (Coroutine::list() as $cid) {
Expand All @@ -611,7 +611,7 @@ private static function handlerGetCoroutineList($server, $msg)
return self::json($list);
}

private static function handlerGetObjects($server, $msg)
public static function handlerGetObjects($server, $msg)
{
if (!function_exists('swoole_get_objects')) {
return self::json(['require ext-swoole_plus'], 5000);
Expand All @@ -636,7 +636,7 @@ private static function handlerGetObjects($server, $msg)
return self::json($list);
}

private static function handlerGetClassInfo($server, $msg)
public static function handlerGetClassInfo($server, $msg)
{
$json = json_decode($msg, true);
if (empty($json['class_name'])) {
Expand Down Expand Up @@ -753,7 +753,7 @@ private static function handlerGetClassInfo($server, $msg)
return self::json($data);
}

private static function handlerGetFunctionInfo($server, $msg)
public static function handlerGetFunctionInfo($server, $msg)
{
$json = json_decode($msg, true);
if (!$json || empty($json['function_name'])) {
Expand Down Expand Up @@ -840,7 +840,7 @@ private static function handlerGetFunctionInfo($server, $msg)
return self::json($result);
}

private static function handlerGetObjectByHandle($server, $msg)
public static function handlerGetObjectByHandle($server, $msg)
{
if (!function_exists('swoole_get_object_by_handle')) {
return self::json(['require ext-swoole_plus'], 5000);
Expand All @@ -864,7 +864,7 @@ private static function handlerGetObjectByHandle($server, $msg)
return self::json(var_export($object, true));
}

private static function handlerGetVersionInfo($server, $msg)
public static function handlerGetVersionInfo($server, $msg)
{
$ip_arr = swoole_get_local_ip();
$host = [];
Expand All @@ -885,7 +885,7 @@ private static function handlerGetVersionInfo($server, $msg)
return self::json($data);
}

private static function handlerGetDefinedFunctions($server, $msg)
public static function handlerGetDefinedFunctions($server, $msg)
{
$functions = get_defined_functions();
$arr = [];
Expand All @@ -906,7 +906,7 @@ private static function handlerGetDefinedFunctions($server, $msg)
return self::json($arr);
}

private static function handlerGetDeclaredClasses($server, $msg)
public static function handlerGetDeclaredClasses($server, $msg)
{
$classes = get_declared_classes();
$arr = [];
Expand All @@ -925,7 +925,7 @@ private static function handlerGetDeclaredClasses($server, $msg)
return self::json($arr);
}

private static function handlerGetServerMemoryUsage($server, $msg)
public static function handlerGetServerMemoryUsage($server, $msg)
{
$total = 0;

Expand Down Expand Up @@ -954,7 +954,7 @@ private static function handlerGetServerMemoryUsage($server, $msg)
return self::json($result);
}

private static function handlerGetServerCpuUsage($server, $msg)
public static function handlerGetServerCpuUsage($server, $msg)
{
$total = 0;

Expand All @@ -977,7 +977,7 @@ private static function handlerGetServerCpuUsage($server, $msg)
return self::json($result);
}

private static function handlerGetStaticPropertyValue($server, $msg)
public static function handlerGetStaticPropertyValue($server, $msg)
{
$json = json_decode($msg, true);
if (empty($json['class_name'])) {
Expand Down

0 comments on commit bec0dfe

Please sign in to comment.