Skip to content

Commit 24ac112

Browse files
committed
use Cookie::create()
1 parent 59f9edb commit 24ac112

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/http_foundation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ attribute::
413413

414414
use Symfony\Component\HttpFoundation\Cookie;
415415

416-
$response->headers->setCookie(new Cookie('foo', 'bar'));
416+
$response->headers->setCookie(Cookie::create('foo', 'bar'));
417417

418418
The
419419
:method:`Symfony\\Component\\HttpFoundation\\ResponseHeaderBag::setCookie`

0 commit comments

Comments
 (0)