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

Commit8f9f7ff

Browse files
committed
Merge branch '2.7' into 2.8
* 2.7: Fix passing arguments to "Client" constructor
2 parents1a9b93c +136dadf commit8f9f7ff

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
@@ -190,7 +190,9 @@ into the client constructor::
190190
use Acme\Client;
191191

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

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp