From e3b92a0a6180682c7dcfb90a8b18d2dfea8f51cf Mon Sep 17 00:00:00 2001 From: Denis-Florin Rendler Date: Tue, 5 Jul 2016 20:43:07 +0300 Subject: [PATCH] [Components][Browser-Kit]Fix typo mentioning that Crawler exposes CookieJar not Client --- components/browser_kit/introduction.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/browser_kit/introduction.rst b/components/browser_kit/introduction.rst index 3f39dee7316..ec7d00751ed 100644 --- a/components/browser_kit/introduction.rst +++ b/components/browser_kit/introduction.rst @@ -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:: @@ -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'); @@ -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();