@@ -39,16 +39,16 @@ Creating a Client
3939The component only provides an abstract client and does not provide any backend
4040ready to use for the HTTP layer.
4141
42- To create your own client, you must extend the abstract `` Client `` class and
43- implement the :method: `Symfony\\ Component\\ BrowserKit\\ Client ::doRequest ` method.
42+ To create your own client, you must extend the `` AbstractBrowser `` class and
43+ implement the :method: `Symfony\\ Component\\ BrowserKit\\ AbstractBrowser ::doRequest ` method.
4444This method accepts a request and should return a response::
4545
4646 namespace Acme;
4747
48- use Symfony\Component\BrowserKit\Client as BaseClient ;
48+ use Symfony\Component\BrowserKit\AbstractBrowser ;
4949 use Symfony\Component\BrowserKit\Response;
5050
51- class Client extends BaseClient
51+ class Client extends AbstractBrowser
5252 {
5353 protected function doRequest($request)
5454 {
@@ -67,7 +67,7 @@ provided by the :doc:`HttpKernel component </components/http_kernel>`.
6767Making Requests
6868~~~~~~~~~~~~~~~
6969
70- Use the :method: `Symfony\\ Component\\ BrowserKit\\ Client ::request ` method to
70+ Use the :method: `Symfony\\ Component\\ BrowserKit\\ AbstractBrowser ::request ` method to
7171make HTTP requests. The first two arguments are the HTTP method and the requested
7272URL::
7373
@@ -81,7 +81,7 @@ The value returned by the ``request()`` method is an instance of the
8181:doc: `DomCrawler component </components/dom_crawler >`, which allows accessing
8282and traversing HTML elements programmatically.
8383
84- The :method: `Symfony\\ Component\\ BrowserKit\\ Client ::xmlHttpRequest ` method,
84+ The :method: `Symfony\\ Component\\ BrowserKit\\ AbstractBrowser ::xmlHttpRequest ` method,
8585which defines the same arguments as the ``request() `` method, is a shortcut to
8686make AJAX requests::
8787
0 commit comments