PascalPrecht/Clever-Reach-PHP-API — Issue #3: Singleton-Pattern for CleverReachClient
Author: PascalPrecht
Created: 2011-11-29 10:43:45+00:00
State: open

I think it is useful to implement the Singleton-Pattern in the CleverReachFactory. Just to make sure to get one and the same CleverReachClient instance for every "getClient" invokation.

This could be a way to get some things done with Issue #2. Because using this pattern we can instantiate our client static in all methods, which needs one to make a soap request.