Skip to content

Commit 21c53f7

Browse files
Upgrade to 3.1 (#105)
Co-authored-by: 李铭昕 <[email protected]>
1 parent 376bfe2 commit 21c53f7

30 files changed

+70
-37
lines changed

.github/workflows/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
# @license https://github.com/hyperf/hyperf/blob/master/LICENSE
77

8-
FROM hyperf/hyperf:8.0-alpine-v3.16-swoole
8+
FROM hyperf/hyperf:8.1-alpine-v3.18-swoole
99
LABEL maintainer="Hyperf Developers <[email protected]>" version="1.0" license="MIT" app.name="Hyperf"
1010

1111
##

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
# @license https://github.com/hyperf/hyperf/blob/master/LICENSE
77

8-
FROM hyperf/hyperf:8.1-alpine-v3.18-swoole-v5.0
8+
FROM hyperf/hyperf:8.1-alpine-v3.18-swoole
99
LABEL maintainer="Hyperf Developers <[email protected]>" version="1.0" license="MIT" app.name="Hyperf"
1010

1111
##

app/Controller/AbstractController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace App\Controller;
1314

1415
use Hyperf\Di\Annotation\Inject;

app/Controller/IndexController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace App\Controller;
1314

1415
class IndexController extends AbstractController

app/Exception/Handler/AppExceptionHandler.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace App\Exception\Handler;
1314

1415
use Hyperf\Contract\StdoutLoggerInterface;

app/Listener/DbQueryExecutedListener.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace App\Listener;
1314

1415
use Hyperf\Collection\Arr;

app/Listener/ResumeExitCoordinatorListener.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace App\Listener;
1314

1415
use Hyperf\Command\Event\AfterExecute;

app/Model/Model.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace App\Model;
1314

1415
use Hyperf\DbConnection\Model\Model as BaseModel;

composer.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,23 @@
1212
"description": "A coroutine framework that focuses on hyperspeed and flexible, specifically use for build microservices and middlewares.",
1313
"license": "Apache-2.0",
1414
"require": {
15-
"php": ">=8.0",
16-
"hyperf/cache": "~3.0.0",
17-
"hyperf/command": "~3.0.0",
18-
"hyperf/config": "~3.0.0",
19-
"hyperf/db-connection": "~3.0.0",
15+
"php": ">=8.1",
16+
"hyperf/cache": "~3.1.0",
17+
"hyperf/command": "~3.1.0",
18+
"hyperf/config": "~3.1.0",
19+
"hyperf/db-connection": "~3.1.0",
2020
"hyperf/engine": "^2.10",
21-
"hyperf/framework": "~3.0.0",
22-
"hyperf/guzzle": "~3.0.0",
23-
"hyperf/http-server": "~3.0.0",
24-
"hyperf/logger": "~3.0.0",
25-
"hyperf/memory": "~3.0.0",
26-
"hyperf/process": "~3.0.0"
21+
"hyperf/framework": "~3.1.0",
22+
"hyperf/guzzle": "~3.1.0",
23+
"hyperf/http-server": "~3.1.0",
24+
"hyperf/logger": "~3.1.0",
25+
"hyperf/memory": "~3.1.0",
26+
"hyperf/process": "~3.1.0"
2727
},
2828
"require-dev": {
2929
"friendsofphp/php-cs-fixer": "^3.0",
30-
"hyperf/devtool": "~3.0.0",
31-
"hyperf/testing": "~3.0.0",
30+
"hyperf/devtool": "~3.1.0",
31+
"hyperf/testing": "~3.1.0",
3232
"mockery/mockery": "^1.0",
3333
"phpstan/phpstan": "^1.0",
3434
"swoole/ide-helper": "^5.0"

installer/OptionalPackages.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Installer;
1314

1415
use Composer\Composer;

0 commit comments

Comments
 (0)