Skip to content

Commit b7dfe21

Browse files
authored
Fix interface name and example
1 parent d5bfb6b commit b7dfe21

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,20 +109,21 @@ public function registerBundles()
109109
## Usage
110110

111111
Choose 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
117117
namespace App\Caching;
118118

119119
use 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;

0 commit comments

Comments
 (0)