Skip to content

Commit

Permalink
beta 升级至hyperf 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
wilbur-yu committed Jan 15, 2023
1 parent aee87ef commit 76adb5d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@
"php": ">=8.0",
"ext-json": "*",
"guanguans/soar-php": "^2.0",
"hyperf/config": "^2.0",
"hyperf/database": "^2.0",
"hyperf/di": "^2.0",
"hyperf/event": "^2.0",
"hyperf/http-message": "^2.0"
"hyperf/config": "3.0.*",
"hyperf/database": "3.0.*",
"hyperf/di": "3.0.*",
"hyperf/event": "3.0.*",
"hyperf/http-message": "3.0.*"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.0",
Expand Down
4 changes: 2 additions & 2 deletions src/Aspect/ResponseAspect.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@

namespace Wilbur\HyperfSoar\Aspect;

use Hyperf\Context\Context;
use Hyperf\Contract\ConfigInterface;
use Hyperf\Di\Annotation\Aspect;
use Hyperf\Di\Annotation\Inject;
use Hyperf\Di\Aop\AbstractAspect;
use Hyperf\Di\Aop\ProceedingJoinPoint;
use Hyperf\Engine\Channel;
use Hyperf\HttpMessage\Stream\SwooleStream;
use Hyperf\Utils\Context;
use Hyperf\Utils\Exception\ParallelExecutionException;
use Hyperf\Utils\Parallel;
use Hyperf\Utils\Str;
Expand All @@ -42,7 +42,7 @@
#[Aspect]
class ResponseAspect extends AbstractAspect
{
public $classes = [
public array $classes = [
'Hyperf\HttpServer\Response::json',
];

Expand Down
2 changes: 1 addition & 1 deletion src/Listener/QueryExecListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@

namespace Wilbur\HyperfSoar\Listener;

use Hyperf\Context\Context;
use Hyperf\Contract\ConfigInterface;
use Hyperf\Database\Events\QueryExecuted;
use Hyperf\Event\Annotation\Listener;
use Hyperf\Event\Contract\ListenerInterface;
use Hyperf\Utils\Arr;
use Hyperf\Utils\Context;
use Hyperf\Utils\Str;


Expand Down

0 comments on commit 76adb5d

Please sign in to comment.