Skip to content

Commit d556da7

Browse files
Denis-Florin Rendlerwouterj
authored andcommitted
[Components][Browser-Kit]Fix typo mentioning that Crawler exposes CookieJar not Client
1 parent 6e216f8 commit d556da7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/browser_kit/introduction.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ Cookies
112112
Retrieving 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
117117
retrieve 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();

0 commit comments

Comments
 (0)