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 9661886 commit dc438d2Copy full SHA for dc438d2
components/browser_kit.rst
@@ -190,7 +190,9 @@ into the client constructor::
190
use Acme\Client;
191
192
// create cookies and add to cookie jar
193
- $cookieJar = new Cookie('flavor', 'chocolate', strtotime('+1 day'));
+ $cookie = new Cookie('flavor', 'chocolate', strtotime('+1 day'));
194
+ $cookieJar = new CookieJar();
195
+ $cookieJar->set($cookie);
196
197
// create a client and set the cookies
198
$client = new Client(array(), null, $cookieJar);
0 commit comments