Skip to content

Commit a680961

Browse files
Deprecate configuring tag names and service ids in compiler passes
1 parent 3c0d194 commit a680961

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

DependencyInjection/Compiler/TestServiceContainerWeakRefPass.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ class TestServiceContainerWeakRefPass implements CompilerPassInterface
2626

2727
public function __construct(string $privateTagName = 'container.private')
2828
{
29+
if (0 < \func_num_args()) {
30+
trigger_deprecation('symfony/framework-bundle', '5.3', 'Configuring "%s" is deprecated.', __CLASS__);
31+
}
32+
2933
$this->privateTagName = $privateTagName;
3034
}
3135

0 commit comments

Comments
 (0)