Skip to content

Commit 5be11c7

Browse files
authored
fix: SolapiMessageService에서 커스텀 PSR-18 HTTP 클라이언트 주입이 불가능하던 문제 수정
1 parent c45b7b0 commit 5be11c7

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/Services/SolapiMessageService.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
use Nurigo\Solapi\Exceptions\CurlException;
99
use Nurigo\Solapi\Exceptions\MessageNotReceivedException;
1010
use Nurigo\Solapi\Exceptions\UnknownException;
11+
use Psr\Http\Client\ClientInterface;
1112
use Nurigo\Solapi\Libraries\Fetcher;
1213
use Nurigo\Solapi\Models\Message;
1314
use Nurigo\Solapi\Models\Request\GetGroupMessagesRequest;
@@ -32,9 +33,9 @@ class SolapiMessageService
3233
*/
3334
private $fetcherInstance;
3435

35-
public function __construct(string $apiKey, string $apiSecretKey)
36+
public function __construct(string $apiKey, string $apiSecretKey, ?ClientInterface $httpClient = null)
3637
{
37-
$this->fetcherInstance = Fetcher::getInstance($apiKey, $apiSecretKey);
38+
$this->fetcherInstance = Fetcher::getInstance($apiKey, $apiSecretKey, $httpClient);
3839
}
3940

4041
/**

0 commit comments

Comments
 (0)