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 33
44namespace Jaeger \Symfony \DependencyInjection ;
55
6+ use Symfony \Component \DependencyInjection \Compiler \AliasDeprecatedPublicServicesPass ;
67use Symfony \Component \DependencyInjection \Compiler \CompilerPassInterface ;
78use Symfony \Component \DependencyInjection \ContainerBuilder ;
8- use Symfony \Component \DependencyInjection \Dumper \Preloader ;
99
1010class DeprecatedAliasesCompilerPass implements CompilerPassInterface
1111{
@@ -37,14 +37,16 @@ public function process(ContainerBuilder $container): void
3737 */
3838 private function getDeprecationMsg (string $ message , string $ version ): array
3939 {
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)) {
4143 return [
4244 'code-tool/jaeger-client-symfony-bridge ' ,
4345 $ version ,
4446 $ message ,
4547 ];
4648 }
4749
48- return [$ message ];
50+ return [true , $ message ];
4951 }
5052}
You can’t perform that action at this time.
0 commit comments