This repository has been archived by the owner on Apr 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #481 from FriendsOfPHP/deprecation
Add some deprecation notice to encourage people to use HttpBrowser instead from the Symfony BrowserKit component
- Loading branch information
Showing
5 changed files
with
21 additions
and
27 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,11 +11,22 @@ | |
|
||
namespace Goutte; | ||
|
||
use Symfony\Component\BrowserKit\CookieJar; | ||
use Symfony\Component\BrowserKit\History; | ||
use Symfony\Component\BrowserKit\HttpBrowser; | ||
use Symfony\Contracts\HttpClient\HttpClientInterface; | ||
|
||
/** | ||
* @author Fabien Potencier <[email protected]> | ||
* | ||
* @deprecated Use Symfony\Component\BrowserKit\HttpBrowser directly instead | ||
*/ | ||
class Client extends HttpBrowser | ||
{ | ||
public function __construct(HttpClientInterface $client = null, History $history = null, CookieJar $cookieJar = null) | ||
{ | ||
trigger_deprecation('fabpot/goutte', '4.0', 'The "%s" class is deprecated, use "%s" instead.', __CLASS__, HttpBrowser::class); | ||
|
||
parent::__construct($client, $history, $cookieJar); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters