File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 3
3
4
4
namespace Jaeger \Symfony \DependencyInjection ;
5
5
6
+ use Symfony \Component \DependencyInjection \Compiler \AliasDeprecatedPublicServicesPass ;
6
7
use Symfony \Component \DependencyInjection \Compiler \CompilerPassInterface ;
7
8
use Symfony \Component \DependencyInjection \ContainerBuilder ;
8
- use Symfony \Component \DependencyInjection \Dumper \Preloader ;
9
9
10
10
class DeprecatedAliasesCompilerPass implements CompilerPassInterface
11
11
{
@@ -37,14 +37,16 @@ public function process(ContainerBuilder $container): void
37
37
*/
38
38
private function getDeprecationMsg (string $ message , string $ version ): array
39
39
{
40
- if (class_exists (Preloader::class)) {
40
+ // \Symfony\Component\DependencyInjection\Compiler\AliasDeprecatedPublicServicesPass
41
+ // introduced in symfony/dependency-injection 5.1.0
42
+ if (class_exists (AliasDeprecatedPublicServicesPass::class)) {
41
43
return [
42
44
'code-tool/jaeger-client-symfony-bridge ' ,
43
45
$ version ,
44
46
$ message ,
45
47
];
46
48
}
47
49
48
- return [$ message ];
50
+ return [true , $ message ];
49
51
}
50
52
}
You can’t perform that action at this time.
0 commit comments