@@ -39,41 +39,14 @@ For most features, you also need to :ref:`configure a caching proxy <foshttpcach
39
39
40
40
.. _requirements :
41
41
42
- Requirements
43
- ------------
44
-
45
- SensioFrameworkExtraBundle
46
- ~~~~~~~~~~~~~~~~~~~~~~~~~~
47
-
48
- If you want to use this bundle’s annotations, install the
49
- SensioFrameworkExtraBundle _:
50
-
51
- .. code-block :: bash
52
-
53
- $ composer require sensio/framework-extra-bundle
54
-
55
- And , if you don't use a recent version of Symfony, include it in your project::
56
-
57
- <?php
58
- // app/AppKernel.php
59
-
60
- public function registerBundles()
61
- {
62
- $bundles = array(
63
- // ...
64
- new FOS\HttpCacheBundle\FOSHttpCacheBundle(),
65
- new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
66
- // ...
67
- );
68
-
69
- .. _expression language requirement :
42
+ Optional Dependencies
43
+ ---------------------
70
44
71
45
ExpressionLanguage
72
46
~~~~~~~~~~~~~~~~~~
73
47
74
- If you wish to use expressions _ in your annotations , you also need Symfony’s
75
- ExpressionLanguage _ component. If you’re not using full-stack Symfony 2.4 or
76
- later, you need to explicitly add the component:
48
+ If you wish to use expressions _ in your :ref: `attributes <reference/attributes.rst >`,
49
+ you need Symfony’s ExpressionLanguage _ component. Make sure it is part of your application with:
77
50
78
51
.. code-block :: bash
79
52
@@ -92,10 +65,10 @@ Functionality
92
65
This table shows where you can find specific functions.
93
66
94
67
========================= ==================================== ==================================================== ==============================================
95
- Functionality Annotations Configuration Manually
68
+ Functionality Attributes Configuration Manually
96
69
========================= ==================================== ==================================================== ==============================================
97
- Set Cache-Control headers (SensioFrameworkExtraBundle _ ) :doc: `rules <reference/configuration/headers >` (Symfony _ )
98
- Tag and invalidate :doc: `@ Tag </features/tagging >` :doc: `rules <reference/configuration/headers >` :doc: `cache manager <reference/cache-manager >`
70
+ Set Cache-Control headers (` Symfony cache attributes `_ ) :doc: `rules <reference/configuration/headers >` (` Symfony cache control `_ )
71
+ Tag and invalidate :doc: `#[ Tag] </features/tagging >` :doc: `rules <reference/configuration/tags >` :doc: `cache manager <reference/cache-manager >`
99
72
Invalidate routes :ref: `invalidateroute ` :ref: `invalidators <invalidation configuration >` :doc: `cache manager <reference/cache-manager >`
100
73
Invalidate paths :ref: `invalidatepath ` :ref: `invalidators <invalidation configuration >` :doc: `cache manager <reference/cache-manager >`
101
74
========================= ==================================== ==================================================== ==============================================
@@ -109,7 +82,7 @@ This bundle is released under the MIT license.
109
82
:language: none
110
83
111
84
.. _Packagist : https://packagist.org/packages/friendsofsymfony/http-cache-bundle
112
- .. _SensioFrameworkExtraBundle : https://symfony.com/doc/current/bundles/SensioFrameworkExtraBundle/index.html
113
85
.. _ExpressionLanguage : https://symfony.com/doc/current/components/expression_language.html
114
- .. _Symfony : https://symfony.com/doc/current/http_cache.html#the-cache-control-header
86
+ .. _Symfony cache attributes : https://symfony.com/doc/current/http_cache.html#making-your-responses-http-cacheable
87
+ .. _Symfony cache control : https://symfony.com/doc/current/http_cache.html#the-cache-control-header
115
88
.. _client implementations : https://packagist.org/providers/php-http/client-implementation
0 commit comments