Skip to content

Commit 8253a8c

Browse files
Deprecate configuring tag names and service ids in compiler passes
1 parent a5102b1 commit 8253a8c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

DependencyInjection/RoutingResolverPass.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ class RoutingResolverPass implements CompilerPassInterface
3030

3131
public function __construct(string $resolverServiceId = 'routing.resolver', string $loaderTag = 'routing.loader')
3232
{
33+
if (0 < \func_num_args()) {
34+
trigger_deprecation('symfony/routing', '5.3', 'Configuring "%s" is deprecated.', __CLASS__);
35+
}
36+
3337
$this->resolverServiceId = $resolverServiceId;
3438
$this->loaderTag = $loaderTag;
3539
}

0 commit comments

Comments
 (0)