Skip to content

Commit faca91a

Browse files
committed
bug #6719 [Components][Browser-Kit]Fix typo with CookieJar (Denis-Florin Rendler)
This PR was submitted for the 3.0 branch but it was merged into the 2.7 branch instead (closes #6719). Discussion ---------- [Components][Browser-Kit]Fix typo with CookieJar Fix typo which mentions that the DomCrawler\Crawler, received from Client::request(), is exposing a method to retrieve the CookieJar instead of the Client implementation Commits ------- d556da7 [Components][Browser-Kit]Fix typo mentioning that Crawler exposes CookieJar not Client
2 parents 6e216f8 + d556da7 commit faca91a

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)