File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,8 @@ class CacheInvalidator
59
59
private $ eventDispatcher ;
60
60
61
61
/**
62
+ * @deprecated This reference is only for BC and will be removed in version 2.0.
63
+ *
62
64
* @var TagHandler
63
65
*/
64
66
private $ tagHandler ;
@@ -115,6 +117,8 @@ public function supports($operation)
115
117
* @param EventDispatcherInterface $eventDispatcher
116
118
*
117
119
* @return $this
120
+ *
121
+ * @throws \Exception When trying to override the event dispatcher.
118
122
*/
119
123
public function setEventDispatcher (EventDispatcherInterface $ eventDispatcher )
120
124
{
Original file line number Diff line number Diff line change @@ -82,10 +82,14 @@ public function getTagsHeaderValue()
82
82
* This must be called before any response is sent to the client.
83
83
*
84
84
* @param array $tags List of tags to add.
85
+ *
86
+ * @return $this
85
87
*/
86
88
public function addTags (array $ tags )
87
89
{
88
90
$ this ->tags = array_merge ($ this ->tags , $ tags );
91
+
92
+ return $ this ;
89
93
}
90
94
91
95
/**
You can’t perform that action at this time.
0 commit comments