Skip to content

Commit b3f55d8

Browse files
committed
Fixed code
1 parent 6a43386 commit b3f55d8

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

components/browser_kit.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -290,20 +290,19 @@ internal requests to your own application. However, you can run the exact same
290290
examples when making HTTP requests to external web sites and applications.
291291

292292
First, install and configure the :doc:`HttpClient component </components/http_client>`.
293-
Then, use the :class:`Symfony\\Component\\HttpClient\\BrowserClient` to create
293+
Then, use the :class:`Symfony\\Component\\BrowserKit\\HttpBrowser` to create
294294
the client that will make the external HTTP requests::
295295

296-
use Symfony\Component\HttpClient\BrowserClient;
296+
use Symfony\Component\BrowserKit\HttpBrowser;
297297
use Symfony\Component\HttpClient\HttpClient;
298298

299-
$browser = new BrowserClient(HttpClient::create());
299+
$browser = new HttpBrowser(HttpClient::create());
300300

301301
You can now use any of the methods shown in this article to extract information,
302302
click links, submit forms, etc. This means that you no longer need to use a
303303
dedicated web crawler or scraper such as `Goutte`_::
304304

305-
// ...
306-
$browser = new BrowserClient(HttpClient::create());
305+
$browser = new HttpBrowser(HttpClient::create());
307306

308307
$browser->request('GET', 'https://github.com');
309308
$browser->clickLink('Sign in');

0 commit comments

Comments
 (0)