diff --git a/src/Symfony/Component/Cache/Adapter/NullAdapter.php b/src/Symfony/Component/Cache/Adapter/NullAdapter.php index 35553ea15f89a..c38326ff6a630 100644 --- a/src/Symfony/Component/Cache/Adapter/NullAdapter.php +++ b/src/Symfony/Component/Cache/Adapter/NullAdapter.php @@ -19,7 +19,7 @@ /** * @author Titouan Galopin */ -class NullAdapter implements AdapterInterface, CacheInterface, NamespacedPoolInterface +class NullAdapter implements AdapterInterface, CacheInterface, NamespacedPoolInterface, TagAwareAdapterInterface { private static \Closure $createCacheItem; @@ -108,4 +108,9 @@ private function generateItems(array $keys): \Generator yield $key => $f($key); } } + + public function invalidateTags(array $tags): bool + { + return true; + } } diff --git a/src/Symfony/Component/Cache/Tests/Adapter/NullAdapterTest.php b/src/Symfony/Component/Cache/Tests/Adapter/NullAdapterTest.php index 8a7925730709c..a3b73bd959aad 100644 --- a/src/Symfony/Component/Cache/Tests/Adapter/NullAdapterTest.php +++ b/src/Symfony/Component/Cache/Tests/Adapter/NullAdapterTest.php @@ -138,4 +138,11 @@ public function testCommit() $this->assertTrue($adapter->saveDeferred($item)); $this->assertTrue($this->createCachePool()->commit()); } + + public function testInvalidateTags() + { + $adapter = $this->createCachePool(); + + self::assertTrue($adapter->invalidateTags(['foo'])); + } } diff --git a/src/Symfony/Component/Config/CHANGELOG.md b/src/Symfony/Component/Config/CHANGELOG.md index 6ee63f82c72ff..a78ad5358884c 100644 --- a/src/Symfony/Component/Config/CHANGELOG.md +++ b/src/Symfony/Component/Config/CHANGELOG.md @@ -1,6 +1,11 @@ CHANGELOG ========= +7.4 +--- + + * Add TagAwareAdapterInterface to NullAdapter + 7.3 --- pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy