Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5152b0e

Browse files
committed
Merge branch '2.8' into 3.3
* 2.8: Fix passing arguments to "Client" constructor
2 parents08463fd +8f9f7ff commit5152b0e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎components/browser_kit.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,9 @@ into the client constructor::
191191
use Acme\Client;
192192

193193
// create cookies and add to cookie jar
194-
$cookieJar = new Cookie('flavor', 'chocolate', strtotime('+1 day'));
194+
$cookie = new Cookie('flavor', 'chocolate', strtotime('+1 day'));
195+
$cookieJar = new CookieJar();
196+
$cookieJar->set($cookie);
195197

196198
// create a client and set the cookies
197199
$client = new Client(array(), null, $cookieJar);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp