Accepted
The Contentful PHP CDA SDK supports optional caching (PSR-6 CacheItemPoolInterface) and logging (PSR-3 LoggerInterface). The bundle must allow Symfony applications to wire their existing cache and logging infrastructure into the SDK clients without prescribing specific implementations.
Options considered:
Configuration accepts service IDs (strings) for options.logger and options.cache.pool. At compile time, ContentfulExtension::configureDeliveryOptions() converts these strings to Reference objects pointing to the specified services. The defaults are Psr\Log\LoggerInterface and Psr\Cache\CacheItemPoolInterface — the standard container aliases that Symfony's MonologBundle and CacheBundle register automatically.
This means:
Psr\Cache\CacheItemPoolInterface to use the default; if absent and cache is configured, container compilation fails with a missing service errorpsr/log requirement was added in bundle 7.1.0 (previously implicit via contentful/contentful) to make the dependency explicit and allow psr/log v2/v3How can I help you explore Laravel packages today?