Skip to content

Commit

Permalink
Support For Hyperf Version 3.1.0 Or Newer
Browse files Browse the repository at this point in the history
  • Loading branch information
qiutuleng committed May 8, 2024
1 parent 5de12af commit 91fe239
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 110 deletions.
89 changes: 0 additions & 89 deletions .php_cs

This file was deleted.

17 changes: 5 additions & 12 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,26 +27,19 @@
}
},
"require": {
"php": ">=7.4",
"ext-swoole": ">=4.5",
"hyperf/framework": "^3.0",
"hyperf/di": "^3.0",
"php": ">=8.1",
"symfony/var-dumper": "^5.0",
"hyperf/command": "^3.0"
"hyperf/command": "^3.1",
"hyperf/framework": "^3.1"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.14",
"phpstan/phpstan": "^0.12",
"hyperf/testing": "^2.0",
"swoole/ide-helper": "dev-master"
"hyperf/testing": "^3.1"
},
"config": {
"sort-packages": true
},
"scripts": {
"test": "co-phpunit -c phpunit.xml --colors=always",
"analyse": "phpstan analyse --memory-limit 1024M -l 0 ./src",
"cs-fix": "php-cs-fixer fix $1"
"test": "co-phpunit -c phpunit.xml --colors=always"
},
"extra": {
"hyperf": {
Expand Down
3 changes: 0 additions & 3 deletions src/Commands/DumpServerCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

use Hyperf\Command\Command;
use Hyperf\Contract\ConfigInterface;
use Hyperf\Contract\StdoutLoggerInterface;
use Hyperf\Di\Container;
use Hyperf\Context\ApplicationContext;
use InvalidArgumentException;
use Symfony\Component\Console\Style\SymfonyStyle;
Expand Down Expand Up @@ -76,7 +74,6 @@ public function configure()

protected function getServer(): DumpServer
{
/** @var Container $container */
$container = ApplicationContext::getContainer();
$config = $container->get(ConfigInterface::class);

Expand Down
3 changes: 0 additions & 3 deletions src/ConfigProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@

namespace Qiutuleng\HyperfDumpServer;

use Hyperf\Contract\ConfigInterface;
use Hyperf\Contract\StdoutLoggerInterface;
use Hyperf\Di\Container;
use Qiutuleng\HyperfDumpServer\Commands\DumpServerCommand;
use Qiutuleng\HyperfDumpServer\Listeners\DumpServerListener;

Expand Down
1 change: 0 additions & 1 deletion src/Listeners/DumpServerListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
use Hyperf\Di\Container;
use Hyperf\Event\Contract\ListenerInterface;
use Hyperf\Framework\Event\AfterWorkerStart;
use Hyperf\Framework\Event\BeforeWorkerStart;
use Hyperf\Framework\Event\OnStart;
use Hyperf\HttpServer\Request;
use Qiutuleng\HyperfDumpServer\Dumper;
Expand Down
3 changes: 1 addition & 2 deletions src/RequestContextProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@
use Hyperf\HttpServer\Request;
use Hyperf\HttpServer\Router\Dispatched;
use Hyperf\Context\Context;
use Hyperf\Utils\Str;
use Hyperf\Stringable\Str;
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Message\UriInterface;
use Symfony\Component\VarDumper\Cloner\VarCloner;
use Symfony\Component\VarDumper\Dumper\ContextProvider\ContextProviderInterface;

Expand Down

0 comments on commit 91fe239

Please sign in to comment.