Skip to content

Commit

Permalink
[HttpCache] Fix decorating http_cache xml example
Browse files Browse the repository at this point in the history
  • Loading branch information
HypeMC committed Mar 15, 2023
1 parent 5d49314 commit 6641fa5
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions http_cache/cache_invalidation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,13 @@ Then, register the class as a service that :doc:`decorates </service_container/s
xsi:schemaLocation="http://symfony.com/schema/dic/services
https://symfony.com/schema/dic/services/services-1.0.xsd"
>
<service id="App\CacheKernel" decorates="http_cache">
<argument type="service" id="kernel"/>
<argument type="service" id="http_cache.store"/>
<argument type="service" id="esi" on-invalid="null"/>
</service>
<services>
<service id="App\CacheKernel" decorates="http_cache">
<argument type="service" id="kernel"/>
<argument type="service" id="http_cache.store"/>
<argument type="service" id="esi" on-invalid="null"/>
</service>
</services>
</container>
.. code-block:: php
Expand Down

0 comments on commit 6641fa5

Please sign in to comment.