Skip to content

Commit

Permalink
Instead of classes and functions of Hyperf\Utils (#5674)
Browse files Browse the repository at this point in the history
Co-authored-by: 李铭昕 <[email protected]>
  • Loading branch information
huangdijia and limingxinleo authored Apr 26, 2023
1 parent b1c52d9 commit ada65d3
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"ext-redis": "*",
"hyperf/contract": "~3.0.0",
"hyperf/pool": "~3.0.0",
"hyperf/support": "~3.0.0",
"hyperf/tappable": "~3.0.0",
"hyperf/utils": "~3.0.0",
"psr/container": "^1.0|^2.0"
Expand Down
2 changes: 2 additions & 0 deletions publish/redis.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/
use function Hyperf\Support\env;

return [
'default' => [
'host' => env('REDIS_HOST', 'localhost'),
Expand Down
2 changes: 2 additions & 0 deletions src/Pool/RedisPool.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
use InvalidArgumentException;
use Psr\Container\ContainerInterface;

use function Hyperf\Support\make;

class RedisPool extends Pool
{
protected array $config;
Expand Down
2 changes: 2 additions & 0 deletions src/RedisFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
use Hyperf\Contract\ConfigInterface;
use Hyperf\Redis\Exception\InvalidRedisProxyException;

use function Hyperf\Support\make;

class RedisFactory
{
/**
Expand Down
2 changes: 1 addition & 1 deletion tests/RedisConnectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
use Hyperf\Pool\Pool;
use Hyperf\Pool\PoolOption;
use Hyperf\Redis\Frequency;
use Hyperf\Utils\Reflection\ClassInvoker;
use Hyperf\Support\Reflection\ClassInvoker;
use HyperfTest\Redis\Stub\RedisConnectionStub;
use HyperfTest\Redis\Stub\RedisPoolStub;
use Mockery;
Expand Down
2 changes: 2 additions & 0 deletions tests/Stub/ContainerStub.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
use Hyperf\Redis\Redis;
use Mockery;

use function Hyperf\Support\value;

class ContainerStub
{
public static function mockContainer()
Expand Down

0 comments on commit ada65d3

Please sign in to comment.