Skip to content

Commit 22ccb8f

Browse files
committed
Added a deprecated directive
1 parent d56e303 commit 22ccb8f

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

components/browser_kit.rst

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,16 @@ Creating a Client
3737
~~~~~~~~~~~~~~~~~
3838

3939
The component only provides an abstract client and does not provide any backend
40-
ready to use for the HTTP layer.
40+
ready to use for the HTTP layer. To create your own client, you must extend the
41+
``AbstractBrowser`` class and implement the
42+
:method:`Symfony\\Component\\BrowserKit\\AbstractBrowser::doRequest` method.
4143

42-
To create your own client, you must extend the ``AbstractBrowser`` class and
43-
implement the :method:`Symfony\\Component\\BrowserKit\\AbstractBrowser::doRequest` method.
44-
This method accepts a request and should return a response::
44+
.. deprecated:: 4.3
45+
46+
In Symfony 4.3 and earlier versions, the ``AbstractBrowser`` class was called
47+
``Client`` (which is now deprecated).
48+
49+
The ``doRequest()`` method accepts a request and should return a response::
4550

4651
namespace Acme;
4752

0 commit comments

Comments
 (0)