Skip to content

Commit

Permalink
Merge pull request #254 from php-http/bundle-cache-plugin-optional
Browse files Browse the repository at this point in the history
mention that cache-plugin is not required in httplug bundle
  • Loading branch information
dbu committed Mar 4, 2019
2 parents a125f14 + 2678a87 commit 86a7d35
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions integrations/symfony-bundle.rst
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,11 @@ service names follow the pattern ``httplug.plugin.<name>``:
plugins:
- 'httplug.plugin.cache'
.. note::

To configure HTTP caching, you need to require ``php-http/cache-plugin`` in
your project. It is available as a separate composer package.

To use a custom plugin or when you need specific configuration that is not
covered by the bundle configuration, you can configure the plugin as a normal
symfony service and then reference that service name in the plugin list of your
Expand Down
2 changes: 1 addition & 1 deletion integrations/symfony-full-configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ This page shows an example of all configuration values provided by the bundle.
my_service:
type: 'service'
service: 'my_authentication_service'
cache:
cache: # requires the php-http/cache-plugin package to be installed in your package
cache_pool: 'my_cache_pool'
stream_factory: 'httplug.stream_factory'
config:
Expand Down

0 comments on commit 86a7d35

Please sign in to comment.