Skip to content

Commit 53f3d07

Browse files
mark code as php code block
1 parent 1ccb79f commit 53f3d07

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Resources/doc/features/symfony-http-cache.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ making your kernel capable of providing the cache.
7676

7777
The recommended way to wire things up is to instantiate the cache kernel in the
7878
kernel constructor to guarantee consistent setup over all entry points. Adjust
79-
your kernel like this::
79+
your kernel like this:
80+
81+
.. code-block:: php
8082
8183
// src/AppKernel.php
8284
@@ -100,6 +102,8 @@ your kernel like this::
100102
101103
Now you need to adjust your front controller (that you set up according to the `Symfony HttpCache documentation_`) to use that cache instance rather than creating one:
102104

105+
.. code-block:: php
106+
103107
// public/index.php
104108
105109
use App\AppKernel;

0 commit comments

Comments
 (0)