Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7da4e2b

Browse files
committed
[HttpCache] Fix extends/use statements
1 parent 95e0a78 commit 7da4e2b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

book/http_cache.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,10 @@ finely tuned via a set of options you can set by overriding the ``getOptions()``
173173
method::
174174

175175
// app/AppCache.php
176-
class AppCache extends Cache
176+
177+
use Symfony\Bundle\FrameworkBundle\HttpCache\HttpCache;
178+
179+
class AppCache extends HttpCache
177180
{
178181
protected function getOptions()
179182
{
@@ -654,7 +657,7 @@ exposing a simple and efficient pattern::
654657
} else {
655658
// do more work here - like retrieving more data
656659
$comments = // ...
657-
660+
658661
// or render a template with the $response you've already started
659662
return $this->render(
660663
'MyBundle:MyController:article.html.twig',

0 commit comments

Comments
 (0)