-
Notifications
You must be signed in to change notification settings - Fork 48
Closed
Description
Reproduction Steps
- Install via Composer
$ composer require launchdarkly/launchdarkly-php- Construct an instance of the
LDClient
$client = new LaunchDarkly\LDClient('sdk-...');Expected Outcome
LaunchDarkly\GuzzleFeatureRequester will try to utilize the Kevinrob\GuzzleCache\CacheMiddleware class if the class is available
Actual Outcome
Error: Class 'Kevinrob\GuzzleCache\CacheMiddleware' not found
Proposed Resolution
Allow for utilization of the GuzzleFeatureRequester without requiring a 3rd party caching handler in scenarios that Kevinrob\GuzzleCache\CacheMiddleware is not suitable (ie, single run containers that discard their filesystem and memory after use)
- Modify
LaunchDarkly\GuzzleFeatureRequesterto utilizeKevinrob\GuzzleCache\CacheMiddlewareif it is available viaclass_exists - Add a message to the
kevinrob/guzzle-cache-middlewarecomposer.json suggestion describing its role in the library
Metadata
Metadata
Assignees
Labels
No labels