From 7be4124c6bba9a0b3161c6a6086e3d18a396fccb Mon Sep 17 00:00:00 2001 From: Deeka Wong Date: Wed, 26 Apr 2023 11:02:31 +0800 Subject: [PATCH] Instead of classes and functions of `Hyperf\Utils` (#5674) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 李铭昕 <715557344@qq.com> --- composer.json | 1 + publish/opentracing.php | 2 ++ tests/TracerFactoryTest.php | 2 ++ 3 files changed, 5 insertions(+) diff --git a/composer.json b/composer.json index b08f737..52d829a 100644 --- a/composer.json +++ b/composer.json @@ -21,6 +21,7 @@ "hyperf/contract": "~3.0.0", "hyperf/di": "~3.0.0", "hyperf/guzzle": "~3.0.0", + "hyperf/support": "~3.0.0", "hyperf/utils": "~3.0.0", "jcchavezs/zipkin-opentracing": "^2.0", "opentracing/opentracing": "^1.0" diff --git a/publish/opentracing.php b/publish/opentracing.php index ca59f26..53fde1c 100644 --- a/publish/opentracing.php +++ b/publish/opentracing.php @@ -11,6 +11,8 @@ */ use Zipkin\Samplers\BinarySampler; +use function Hyperf\Support\env; + return [ 'default' => env('TRACER_DRIVER', 'zipkin'), 'enable' => [ diff --git a/tests/TracerFactoryTest.php b/tests/TracerFactoryTest.php index c9c791f..7df87b1 100644 --- a/tests/TracerFactoryTest.php +++ b/tests/TracerFactoryTest.php @@ -19,6 +19,8 @@ use PHPUnit\Framework\TestCase; use Zipkin\Samplers\BinarySampler; +use function Hyperf\Support\env; + /** * @internal * @coversNothing