Skip to content

Commit

Permalink
Switch out NativeHttpClient for CurlHttpClient #16. (#18)
Browse files Browse the repository at this point in the history
* Switch out NativeHttpClient for CurlHttpClient #16 

---------

Co-authored-by: maantje <maantje@users.noreply.github.com>
  • Loading branch information
maantje and maantje authored Jun 25, 2024
1 parent 87cf0da commit 97bd9a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/XhprofServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -25,7 +25,7 @@ public function register(): void

$this->app->bind(Profiler::class, function () {
$storage = new WebStorage(
new NativeHttpClient(),
new CurlHttpClient(),
config('xhprof.endpoint'),
);

Expand Down
4 changes: 1 addition & 3 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@

use Orchestra\Testbench\TestCase as Orchestra;

class TestCase extends Orchestra
{
}
class TestCase extends Orchestra {}

0 comments on commit 97bd9a3

Please sign in to comment.