Move the Guzzle client from being injected into the API class, as the external users shouldn't have to know that the API calls are made by Guzzle client within this package.
A current usage would look something like this;
$api = new ResellerClubApi(
new ResellerClubApiConfig(
'auth-key',
'api-key',
'env'
),
new GuzzleClient
);
Probably should be more like this;
$api = new ResellerClubApi(
new ResellerClubApiConfig(
'auth-key',
'api-key',
'env'
)
);
Move the Guzzle client from being injected into the API class, as the external users shouldn't have to know that the API calls are made by Guzzle client within this package.
A current usage would look something like this;
Probably should be more like this;