Skip to content

Commit

Permalink
Forward guzzle client
Browse files Browse the repository at this point in the history
  • Loading branch information
stevebauman committed Jun 25, 2024
1 parent f8d453c commit 6796f16
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/ForgeManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Laravel\Forge;

use GuzzleHttp\Client as HttpClient;
use Illuminate\Support\Traits\ForwardsCalls;

/**
Expand All @@ -22,10 +23,11 @@ class ForgeManager
* Create a new Forge manager instance.
*
* @param string $token
* @param \GuzzleHttp\Client|null $guzzle
*/
public function __construct($token)
public function __construct($token, HttpClient $guzzle = null)
{
$this->forge = new Forge($token);
$this->forge = new Forge($token, $guzzle);
}

/**
Expand Down

0 comments on commit 6796f16

Please sign in to comment.