10000 [Cache] Drop TaggedCacheItemInterface · symfony/symfony@624890b · GitHub
[go: up one dir, main page]

Skip to content

Commit 624890b

Browse files
[Cache] Drop TaggedCacheItemInterface
1 parent e408b50 commit 624890b

File tree

2 files changed

+9
-36
lines changed

2 files changed

+9
-36
lines changed

src/Symfony/Component/Cache/CacheItem.php

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@
1111

1212
namespace Symfony\Component\Cache;
1313

14+
use Psr\Cache\CacheItemInterface;
1415
use Psr\Log\LoggerInterface;
1516
use Symfony\Component\Cache\Exception\InvalidArgumentException;
1617

1718
/**
1819
* @author Nicolas Grekas <p@tchwork.com>
1920
*/
20-
final class CacheItem implements TaggedCacheItemInterface
21+
final class CacheItem implements CacheItemInterface
2122
{
2223
protected $key;
2324
protected $value;
@@ -97,7 +98,13 @@ public function expiresAfter($time)
9798
}
9899

99100
/**
100-
* {@inheritdoc}
101+
* Adds a tag to a cache item.
102+
*
103+
* @param string|string[] $tags A tag or array of tags
104+
*
105+
* @return static
106+
*
107+
* @throws InvalidArgumentException When $tag is not valid.
101108
*/
102109
public function tag($tags)
103110
{

src/Symfony/Component/Cache/TaggedCacheItemInterface.php

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)
0