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
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 {
Original file line number Diff line number Diff 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 /**
You can’t perform that action at this time.
0 commit comments