Skip to content

Commit 5c1a43e

Browse files
committed
Updating TaggableCacheItemInterface
1 parent 9836123 commit 5c1a43e

File tree

1 file changed

+6
-18
lines changed

1 file changed

+6
-18
lines changed

EncryptedItemDecorator.php

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -122,37 +122,25 @@ public function expiresAfter($time)
122122
/**
123123
* {@inheritdoc}
124124
*/
125-
public function getTags()
126-
{
127-
return $this->cacheItem->getTags();
128-
}
129-
130-
/**
131-
* {@inheritdoc}
132-
*/
133-
public function setTags(array $tags)
125+
public function getPreviousTags()
134126
{
135-
$this->cacheItem->setTags($tags);
136-
137-
return $this;
127+
return $this->cacheItem->getPreviousTags();
138128
}
139129

140130
/**
141131
* {@inheritdoc}
142132
*/
143-
public function addTag($tag)
133+
public function getTags()
144134
{
145-
$this->cacheItem->addTag($tag);
146-
147-
return $this;
135+
return $this->cacheItem->getTags();
148136
}
149137

150138
/**
151139
* {@inheritdoc}
152140
*/
153-
public function addTags(array $tags)
141+
public function setTags(array $tags)
154142
{
155-
$this->cacheItem->addTags($tags);
143+
$this->cacheItem->setTags($tags);
156144

157145
return $this;
158146
}

0 commit comments

Comments
 (0)