Skip to content

[Components][Browser-Kit]Fix typo with CookieJar #6719

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions components/browser_kit/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ Cookies
Retrieving Cookies
~~~~~~~~~~~~~~~~~~

The ``Crawler`` object exposes cookies (if any) through a
The ``Client`` implementation exposes cookies (if any) through a
:class:`Symfony\\Component\\BrowserKit\\CookieJar`, which allows you to store and
retrieve any cookie while making requests with the client::

Expand All @@ -123,7 +123,7 @@ retrieve any cookie while making requests with the client::
$crawler = $client->request('GET', 'http://symfony.com');

// Get the cookie Jar
$cookieJar = $crawler->getCookieJar();
$cookieJar = $client->getCookieJar();

// Get a cookie by name
$cookie = $cookieJar->get('name_of_the_cookie');
Expand Down Expand Up @@ -155,7 +155,7 @@ Looping Through Cookies
$crawler = $client->request('GET', 'http://symfony.com');

// Get the cookie Jar
$cookieJar = $crawler->getCookieJar();
$cookieJar = $client->getCookieJar();

// Get array with all cookies
$cookies = $cookieJar->all();
Expand Down