Skip to content

Commit 86a7d35

Browse files
authored
Merge pull request #254 from php-http/bundle-cache-plugin-optional
mention that cache-plugin is not required in httplug bundle
2 parents a125f14 + 2678a87 commit 86a7d35

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

integrations/symfony-bundle.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,11 @@ service names follow the pattern ``httplug.plugin.<name>``:
279279
plugins:
280280
- 'httplug.plugin.cache'
281281
282+
.. note::
283+
284+
To configure HTTP caching, you need to require ``php-http/cache-plugin`` in
285+
your project. It is available as a separate composer package.
286+
282287
To use a custom plugin or when you need specific configuration that is not
283288
covered by the bundle configuration, you can configure the plugin as a normal
284289
symfony service and then reference that service name in the plugin list of your

integrations/symfony-full-configuration.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ This page shows an example of all configuration values provided by the bundle.
4040
my_service:
4141
type: 'service'
4242
service: 'my_authentication_service'
43-
cache:
43+
cache: # requires the php-http/cache-plugin package to be installed in your package
4444
cache_pool: 'my_cache_pool'
4545
stream_factory: 'httplug.stream_factory'
4646
config:

0 commit comments

Comments
 (0)