8000 minor #7313 Documentation for Cookie::fromString (ro0NL, javiereguiluz) · symfony/symfony-docs@7be8dec · GitHub
[go: up one dir, main page]

Skip to content

Commit 7be8dec

Browse files
committed
minor #7313 Documentation for Cookie::fromString (ro0NL, javiereguiluz)
This PR was merged into the master branch. Discussion ---------- Documentation for Cookie::fromString See #7278 First time, be patient :) There's also 2nd argument in `fromString` controlling URL decoding, implying `Cookie::isRaw`, but i tend to leave it an implementation detail. Commits ------- 91329f4 Add method parenthesis 09e27fa version added e233519 derp a909e28 feedback 86fa70b Update http_foundation.rst
2 parents 6dc4742 + 91329f4 commit 7be8dec

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

components/http_foundation.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,12 @@ method takes an instance of
378378
You can clear a cookie via the
379379
:method:`Symfony\\Component\\HttpFoundation\\ResponseHeaderBag::clearCookie` method.
380380

381+
Note you can create a
382+
:class:`Symfony\\Component\\HttpFoundation\\Cookie` object from a raw header value using :method:`Symfony\Component\HttpFoundation\Cookie::fromString`.
383+
384+
.. versionadded:: 3.3
385+
The ``Cookie::fromString()`` method was introduced in Symfony 3.3.
386+
381387
Managing the HTTP Cache
382388
~~~~~~~~~~~~~~~~~~~~~~~
383389

0 commit comments

Comments
 (0)
0