Skip to content

Commit

Permalink
minor symfony#11750 use Cookie::create() (xabbuh)
Browse files Browse the repository at this point in the history
This PR was merged into the 4.2 branch.

Discussion
----------

use Cookie::create()

Commits
-------

24ac112 use Cookie::create()
  • Loading branch information
javiereguiluz committed Jun 14, 2019
2 parents f4530ab + 24ac112 commit e6bfda0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/http_foundation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit e6bfda0

Please sign in to comment.