Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
chaz6chez committed Feb 8, 2024
1 parent 4cac330 commit 9acfe51
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
20 changes: 12 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"authors": [
{
"name": "chaz6chez",
"email": "250220719@qq.com",
"email": "chaz6chez1993@outlook.com",
"homepage": "http://chaz6chez.cn"
}
],
Expand All @@ -15,23 +15,22 @@
"source": "https://github.com/workbunny/webman-push-server"
},
"require": {
"php": ">=7.4",
"php": ">=8.0",
"ext-json": "*",
"ext-redis": "*",
"psr/container": "^1.0 | ^2.0",
"illuminate/redis": "^8.0|^9.0|^10.0",
"illuminate/database": "^8.0|^9.0|^10.0",
"illuminate/events": "^8.0|^9.0|^10.0",
"illuminate/redis": "^9.0|^10.0",
"illuminate/database": "^9.0|^10.0",
"illuminate/events": "^9.0|^10.0",
"workerman/http-client": "^1.0 | ^2.0",
"workerman/channel": "^1.0",
"pusher/pusher-php-server": "^7.2",
"monolog/monolog": "^2.0",
"webman/console": "^1.0"
},
"require-dev": {
"workerman/webman-framework": "^1.3.0",
"workerman/webman-framework": "^1.5",
"phpunit/phpunit": "^9.0",
"symfony/var-dumper": "^5.4 | ^6.0"
"symfony/var-dumper": "^6.0"
},
"suggest": {
"ext-uuid": "For unique socket id. "
Expand All @@ -45,6 +44,11 @@
"./src/constants.php"
]
},
"extra": {
"branch-alias": {
"dev-master": "2.x-dev"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests"
Expand Down
8 changes: 4 additions & 4 deletions src/ServerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

namespace Workbunny\WebmanPushServer;

use Redis;
use Workerman\Connection\TcpConnection;
use Workerman\Worker;

Expand All @@ -24,14 +25,13 @@ interface ServerInterface
* @param mixed $default
* @return array|mixed|null
*/
public static function getConfig(string $key, $default = null);
public static function getConfig(string $key, mixed $default = null): mixed;

/**
* 获取储存器
* @return \Redis
* @return Redis
*/
public static function getStorage(): \Redis;

public static function getStorage(): Redis;

/**
* 服务启动
Expand Down

0 comments on commit 9acfe51

Please sign in to comment.