From e992925ca9f79212b9504e9475dbb90b382afeb0 Mon Sep 17 00:00:00 2001 From: HypeMC Date: Mon, 27 Feb 2023 10:28:02 +0100 Subject: [PATCH] [HttpCache] Add example with an attribute --- http_cache/cache_invalidation.rst | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/http_cache/cache_invalidation.rst b/http_cache/cache_invalidation.rst index 4ae2639224b..5027e76299f 100644 --- a/http_cache/cache_invalidation.rst +++ b/http_cache/cache_invalidation.rst @@ -90,6 +90,22 @@ Then, register the class as a service that :doc:`decorates '@?esi'])] + #[AsDecorator(decorates: 'http_cache')] + class CacheKernel extends HttpCache + { + // ... + } + .. code-block:: yaml # config/services.yaml