Skip to content

Commit b9ca77e

Browse files
authored
Merge pull request #406 from nio/patch-1
PurgeTagsListener: checking existence of Psr6StoreInterface incorrect
2 parents 60b4e2b + a580ce0 commit b9ca77e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SymfonyCache/PurgeTagsListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class PurgeTagsListener extends AccessControlledListener
5656
*/
5757
public function __construct(array $options = [])
5858
{
59-
if (!class_exists(Psr6StoreInterface::class)) {
59+
if (!interface_exists(Psr6StoreInterface::class)) {
6060
throw new \Exception('Cache tag invalidation only works with the toflar/psr6-symfony-http-cache-store package. See "Symfony HttpCache Configuration" in the documentation.');
6161
}
6262
parent::__construct($options);

0 commit comments

Comments
 (0)