File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88use Nurigo \Solapi \Exceptions \CurlException ;
99use Nurigo \Solapi \Exceptions \MessageNotReceivedException ;
1010use Nurigo \Solapi \Exceptions \UnknownException ;
11+ use Psr \Http \Client \ClientInterface ;
1112use Nurigo \Solapi \Libraries \Fetcher ;
1213use Nurigo \Solapi \Models \Message ;
1314use 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 /**
You can’t perform that action at this time.
0 commit comments