We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59f9edb commit 24ac112Copy full SHA for 24ac112
components/http_foundation.rst
@@ -413,7 +413,7 @@ attribute::
413
414
use Symfony\Component\HttpFoundation\Cookie;
415
416
- $response->headers->setCookie(new Cookie('foo', 'bar'));
+ $response->headers->setCookie(Cookie::create('foo', 'bar'));
417
418
The
419
:method:`Symfony\\Component\\HttpFoundation\\ResponseHeaderBag::setCookie`
0 commit comments