Skip to content

Commit 46a93be

Browse files
committed
[#6072] some tweaks
1 parent 685dfda commit 46a93be

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

components/browser_kit/introduction.rst

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ You can install the component in two different ways:
1515

1616
* :doc:`Install it via Composer </components/using_components>`
1717
(``symfony/browser-kit`` on `Packagist`_);
18-
* Use the official Git repository (https://github.com/symfony/BrowserKit).
18+
* Use the official Git repository (https://github.com/symfony/browser-kit).
1919

2020
Basic Usage
2121
-----------
@@ -45,16 +45,17 @@ This method accepts a request and should return a response::
4545
}
4646
}
4747

48-
For a simple implementation of a browser based on an HTTP layer, have a look
49-
at `Goutte`_. For an implementation based on ``HttpKernelInterface``, have a
50-
look at the Client provided by the :doc:`HttpKernel component </components/http_kernel/introduction>`.
48+
For a simple implementation of a browser based on the HTTP layer, have a look
49+
at `Goutte`_. For an implementation based on ``HttpKernelInterface``, have
50+
a look at the :class:`Symfony\\Component\\HttpKernel\\Client` provided by
51+
the :doc:`HttpKernel component </components/http_kernel/introduction>`.
5152

5253
Making Requests
5354
~~~~~~~~~~~~~~~
5455

55-
Use the :method:`Symfony\\Component\\BrowserKit\\Client::request` method to make
56-
any HTTP request. The first two arguments are for the HTTP method and the
57-
requested URL::
56+
Use the :method:`Symfony\\Component\\BrowserKit\\Client::request` method to
57+
make HTTP requests. The first two arguments are the HTTP method and the requested
58+
URL::
5859

5960
use Acme\Client;
6061

@@ -63,16 +64,16 @@ requested URL::
6364

6465
The value returned by the ``request()`` method is an instance of the
6566
:class:`Symfony\\Component\\DomCrawler\\Crawler` class, provided by the
66-
:doc:`DomCrawler component </components/dom_crawler>`, and which allows
67-
accessing and traversing HTML elements programmatically.
67+
:doc:`DomCrawler component </components/dom_crawler>`, which allows accessing
68+
and traversing HTML elements programmatically.
6869

6970
Clicking Links
7071
~~~~~~~~~~~~~~
7172

7273
The ``Crawler`` object is capable of simulating link clicks. First, pass the
73-
text content of the link to the ``selectLink()`` method, which returns you a
74-
``Link`` object. Then, pass this object to the ``click()`` method, which makes
75-
the needed HTTP GET request to simulate the link click::
74+
text content of the link to the ``selectLink()`` method, which returns a
75+
``Link`` object. Then, pass this object to the ``click()`` method, which
76+
performs the needed HTTP GET request to simulate the link click::
7677

7778
use Acme\Client;
7879

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy