PHRETS icon indicating copy to clipboard operation
PHRETS copied to clipboard

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

Open collegeman opened this issue 7 years ago • 0 comments

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.

collegeman avatar Jan 12 '18 18:01 collegeman