Skip to content

TagHandler and CacheManager phpdoc cleanups #179

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 16, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/CacheInvalidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ class CacheInvalidator
private $eventDispatcher;

/**
* @deprecated This reference is only for BC and will be removed in version 2.0.
*
* @var TagHandler
*/
private $tagHandler;
Expand Down Expand Up @@ -115,6 +117,8 @@ public function supports($operation)
* @param EventDispatcherInterface $eventDispatcher
*
* @return $this
*
* @throws \Exception When trying to override the event dispatcher.
*/
public function setEventDispatcher(EventDispatcherInterface $eventDispatcher)
{
Expand Down
4 changes: 4 additions & 0 deletions src/Handler/TagHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,14 @@ public function getTagsHeaderValue()
* This must be called before any response is sent to the client.
*
* @param array $tags List of tags to add.
*
* @return $this
*/
public function addTags(array $tags)
{
$this->tags = array_merge($this->tags, $tags);

return $this;
}

/**
Expand Down