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.
2 parents f4530ab + 24ac112 commit e6bfda0Copy full SHA for e6bfda0
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