Skip to content

Commit 19bd63d

Browse files
committed
tweak doc
1 parent 4f1a86f commit 19bd63d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Resources/doc/features/tagging.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ use ``tagResponse($response, $tags)`` to set tags on a response::
6060
}
6161
}
6262

63-
Or inject the ``TagSubscriber`` (service ``fos_http_cache.event_listener.tag``)
63+
If you have no access to the ``Response`` object (e.g. because it is not
64+
created yet), inject the ``TagSubscriber`` (service ``fos_http_cache.event_listener.tag``)
6465
and call ``addTags($tags)`` to set tags that will be added to the response once
6566
it exists::
6667

0 commit comments

Comments
 (0)