File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ Cookies
112
112
Retrieving Cookies
113
113
~~~~~~~~~~~~~~~~~~
114
114
115
- The ``Crawler `` object exposes cookies (if any) through a
115
+ The ``Client `` implementation exposes cookies (if any) through a
116
116
:class: `Symfony\\ Component\\ BrowserKit\\ CookieJar `, which allows you to store and
117
117
retrieve any cookie while making requests with the client::
118
118
@@ -123,7 +123,7 @@ retrieve any cookie while making requests with the client::
123
123
$crawler = $client->request('GET', 'http://symfony.com');
124
124
125
125
// Get the cookie Jar
126
- $cookieJar = $crawler ->getCookieJar();
126
+ $cookieJar = $client ->getCookieJar();
127
127
128
128
// Get a cookie by name
129
129
$cookie = $cookieJar->get('name_of_the_cookie');
@@ -155,7 +155,7 @@ Looping Through Cookies
155
155
$crawler = $client->request('GET', 'http://symfony.com');
156
156
157
157
// Get the cookie Jar
158
- $cookieJar = $crawler ->getCookieJar();
158
+ $cookieJar = $client ->getCookieJar();
159
159
160
160
// Get array with all cookies
161
161
$cookies = $cookieJar->all();
You can’t perform that action at this time.
0 commit comments