Skip to content

Commit 470b749

Browse files
Deprecate configuring tag names and service ids in compiler passes
1 parent ecde6bc commit 470b749

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

DependencyInjection/HttpClientPass.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ final class HttpClientPass implements CompilerPassInterface
2323

2424
public function __construct(string $clientTag = 'http_client.client')
2525
{
26+
if (0 < \func_num_args()) {
27+
trigger_deprecation('symfony/http-client', '5.3', 'Configuring "%s" is deprecated.', __CLASS__);
28+
}
29+
2630
$this->clientTag = $clientTag;
2731
}
2832

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"require": {
2424
"php": ">=7.2.5",
2525
"psr/log": "^1.0",
26+
"symfony/deprecation-contracts": "^2.1",
2627
"symfony/http-client-contracts": "^2.4",
2728
"symfony/polyfill-php73": "^1.11",
2829
"symfony/polyfill-php80": "^1.15",

0 commit comments

Comments
 (0)