From 24ac112285f5979be68933a7f4783f2211774a3b Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Fri, 14 Jun 2019 10:40:36 +0200 Subject: [PATCH] use Cookie::create() --- components/http_foundation.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/http_foundation.rst b/components/http_foundation.rst index 6b3d9746e57..be6db4ab7ab 100644 --- a/components/http_foundation.rst +++ b/components/http_foundation.rst @@ -413,7 +413,7 @@ attribute:: use Symfony\Component\HttpFoundation\Cookie; - $response->headers->setCookie(new Cookie('foo', 'bar')); + $response->headers->setCookie(Cookie::create('foo', 'bar')); The :method:`Symfony\\Component\\HttpFoundation\\ResponseHeaderBag::setCookie`