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
112112Retrieving Cookies
113113~~~~~~~~~~~~~~~~~~
114114
115- The ``Crawler `` object exposes cookies (if any) through a
115+ The ``Client `` implementation exposes cookies (if any) through a
116116:class: `Symfony\\ Component\\ BrowserKit\\ CookieJar `, which allows you to store and
117117retrieve any cookie while making requests with the client::
118118
@@ -123,7 +123,7 @@ retrieve any cookie while making requests with the client::
123123 $crawler = $client->request('GET', 'http://symfony.com');
124124
125125 // Get the cookie Jar
126- $cookieJar = $crawler ->getCookieJar();
126+ $cookieJar = $client ->getCookieJar();
127127
128128 // Get a cookie by name
129129 $cookie = $cookieJar->get('name_of_the_cookie');
@@ -155,7 +155,7 @@ Looping Through Cookies
155155 $crawler = $client->request('GET', 'http://symfony.com');
156156
157157 // Get the cookie Jar
158- $cookieJar = $crawler ->getCookieJar();
158+ $cookieJar = $client ->getCookieJar();
159159
160160 // Get array with all cookies
161161 $cookies = $cookieJar->all();
You can’t perform that action at this time.
0 commit comments