From 6796f16263453ad8f2453361ae36958c182e296e Mon Sep 17 00:00:00 2001 From: Steve Bauman Date: Tue, 25 Jun 2024 09:43:55 -0400 Subject: [PATCH] Forward guzzle client --- src/ForgeManager.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ForgeManager.php b/src/ForgeManager.php index 7eb6b70..ee9f4b3 100644 --- a/src/ForgeManager.php +++ b/src/ForgeManager.php @@ -2,6 +2,7 @@ namespace Laravel\Forge; +use GuzzleHttp\Client as HttpClient; use Illuminate\Support\Traits\ForwardsCalls; /** @@ -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); } /**