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