From 7d11ea31e2e05deea30c4a010281869efefe3caa Mon Sep 17 00:00:00 2001 From: Jamie Schouten Date: Sun, 23 Jun 2024 16:43:50 +0200 Subject: [PATCH] Switch out NativeHttpClient for CurlHttpClient #16. --- src/XhprofServiceProvider.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/XhprofServiceProvider.php b/src/XhprofServiceProvider.php index db823fb..45513bb 100644 --- a/src/XhprofServiceProvider.php +++ b/src/XhprofServiceProvider.php @@ -8,7 +8,7 @@ use SpiralPackages\Profiler\DriverFactory; use SpiralPackages\Profiler\Profiler; use SpiralPackages\Profiler\Storage\WebStorage; -use Symfony\Component\HttpClient\NativeHttpClient; +use Symfony\Component\HttpClient\CurlHttpClient; use Throwable; class XhprofServiceProvider extends ServiceProvider @@ -25,7 +25,7 @@ public function register(): void $this->app->bind(Profiler::class, function () { $storage = new WebStorage( - new NativeHttpClient(), + new CurlHttpClient(), config('xhprof.endpoint'), );