From 2678a87692c91aeb70cf66845f5dcde92b7a1a19 Mon Sep 17 00:00:00 2001 From: David Buchmann Date: Fri, 8 Feb 2019 12:31:25 +0100 Subject: [PATCH] mention that cache-plugin is not required in httplug bundle --- integrations/symfony-bundle.rst | 5 +++++ integrations/symfony-full-configuration.rst | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/integrations/symfony-bundle.rst b/integrations/symfony-bundle.rst index 91acfbe..b93f847 100644 --- a/integrations/symfony-bundle.rst +++ b/integrations/symfony-bundle.rst @@ -279,6 +279,11 @@ service names follow the pattern ``httplug.plugin.``: 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 diff --git a/integrations/symfony-full-configuration.rst b/integrations/symfony-full-configuration.rst index 2adf2ae..25004c4 100644 --- a/integrations/symfony-full-configuration.rst +++ b/integrations/symfony-full-configuration.rst @@ -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: