Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the ability to set the GuzzleHttp\Client instance on the PHRETS\Session #194

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

collegeman
Copy link

We use PHRETS to connect to and download data from MRIS/BrightMLS.

We have a use case that requires our application, in a single runtime, to connect to more than one server. As is, this is impossible because the PHRETS\Session calls PHRETSClient to manage a singleton instance of GuzzleHttp\Client. This makes it impossible to authenticate more than one RETS session per runtime, which we need to be able to do.

This is solved by adding a mutator to PHRETS\Session, allowing for our application to set the instance of GuzzleHttp\Client at the time the session object is created.

All of your unit tests are passing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant