Skip to content

Commit

Permalink
update: added swoole UPDATE_TYPE
Browse files Browse the repository at this point in the history
  • Loading branch information
AmirHkrg committed Sep 3, 2024
1 parent 2ccb11b commit 50d5e6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Updates.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function __get($name)
$update = json_decode($data['argv'][1]);
} elseif ($update_type == 'sync' || !isset($update_type)) {
$update = json_decode(file_get_contents('php://input'));
} elseif ($update_type == 'openswoole') {
} elseif ($update_type == 'openswoole' || $update_type == 'swoole') {
global $swoole;
$update = $swoole;
}
Expand All @@ -81,7 +81,7 @@ public function getData()
return json_decode($data['argv'][1]);
} elseif ($update_type == 'sync' || !isset($update_type)) {
return json_decode(file_get_contents('php://input'));
} elseif ($update_type == 'openswoole') {
} elseif ($update_type == 'openswoole' || $update_type == 'swoole') {
global $swoole;
return $swoole;
}
Expand Down

0 comments on commit 50d5e6c

Please sign in to comment.