Skip to content

Commit d488a2d

Browse files
committed
Merge pull request #179 from FriendsOfSymfony/phpdoc-cleanup
TagHandler and CacheManager phpdoc cleanups
2 parents 6efe6b3 + bfb7042 commit d488a2d

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/CacheInvalidator.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ class CacheInvalidator
5959
private $eventDispatcher;
6060

6161
/**
62+
* @deprecated This reference is only for BC and will be removed in version 2.0.
63+
*
6264
* @var TagHandler
6365
*/
6466
private $tagHandler;
@@ -115,6 +117,8 @@ public function supports($operation)
115117
* @param EventDispatcherInterface $eventDispatcher
116118
*
117119
* @return $this
120+
*
121+
* @throws \Exception When trying to override the event dispatcher.
118122
*/
119123
public function setEventDispatcher(EventDispatcherInterface $eventDispatcher)
120124
{

src/Handler/TagHandler.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,14 @@ public function getTagsHeaderValue()
8282
* This must be called before any response is sent to the client.
8383
*
8484
* @param array $tags List of tags to add.
85+
*
86+
* @return $this
8587
*/
8688
public function addTags(array $tags)
8789
{
8890
$this->tags = array_merge($this->tags, $tags);
91+
92+
return $this;
8993
}
9094

9195
/**

0 commit comments

Comments
 (0)