Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

Make GuzzleHttp\Client Injectable and Shared #125

Merged
merged 2 commits into from
Mar 29, 2016
Merged

Make GuzzleHttp\Client Injectable and Shared #125

merged 2 commits into from
Mar 29, 2016

Conversation

huebs
Copy link
Contributor

@huebs huebs commented Feb 3, 2016

  • Improve performance and decrease memory usage by sharing a single GuzzleHttp\Client across all services.
  • Allow a GuzzleHttp\Client to be injected during instantiation so that a mock can be used for testing. The original intention was to allow third parties to use this for testing but it also enables improvements to the internal test suite.

  * Improved performance and decrease the memory usage by sharing a
    single Client across all services.
  * Allow a GuzzleHttp\Client to be injected during instantiation so
    that a mock can be used for testing.
@WoogieNoogie WoogieNoogie merged commit 687a61e into constantcontact:development Mar 29, 2016
@huebs huebs deleted the use-di-for-guzzle branch May 26, 2016 00:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants