Skip to content

Commit 04ae7fe

Browse files
Deprecate configuring tag names and service ids in compiler passes
1 parent d27a0ee commit 04ae7fe

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

DependencyInjection/FormPass.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ class FormPass implements CompilerPassInterface
3838

3939
public function __construct(string $formExtensionService = 'form.extension', string $formTypeTag = 'form.type', string $formTypeExtensionTag = 'form.type_extension', string $formTypeGuesserTag = 'form.type_guesser', string $formDebugCommandService = 'console.command.form_debug')
4040
{
41+
if (0 < \func_num_args()) {
42+
trigger_deprecation('symfony/http-kernel', '5.3', 'Configuring "%s" is deprecated.', __CLASS__);
43+
}
44+
4145
$this->formExtensionService = $formExtensionService;
4246
$this->formTypeTag = $formTypeTag;
4347
$this->formTypeExtensionTag = $formTypeExtensionTag;

0 commit comments

Comments
 (0)