File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -109,20 +109,21 @@ public function registerBundles()
109109## Usage
110110
111111Choose a controller action you want to possibly replace with a 304 Not Modified response. Write one LastModifiedDeterminator for each
112- of the different underlying resources, implementing the ``` Webfactory\HttpCacheBundle\NotModified\LastModifiedDeterminatorInterface ``` .
112+ of the different underlying resources, implementing the ``` Webfactory\HttpCacheBundle\NotModified\LastModifiedDeterminator ``` interface .
113113
114114``` php
115115<?php
116116// src/Caching/PostsLastModifiedDeterminator.php
117117namespace App\Caching;
118118
119119use App\Entity\PostRepository;
120- use Webfactory\HttpCacheBundle\NotModified\LastModifiedDeterminatorInterface;
120+ use Symfony\Component\HttpFoundation\Request;
121+ use Webfactory\HttpCacheBundle\NotModified\LastModifiedDeterminator;
121122
122123/**
123124 * Returns the publishing date of the latest posts.
124125 */
125- final class PostsLastModifiedDeterminator implements LastModifiedDeterminatorInterface
126+ final class PostsLastModifiedDeterminator implements LastModifiedDeterminator
126127{
127128 /** @var EntityRepository */
128129 private $postRepository;
You can’t perform that action at this time.
0 commit comments