Deprecation message autowiring alias ContainerInterface
ToshY opened this issue · 3 comments
ToshY commented
Using Symfony 5.3 the profiler shows the following deprecation message:
Since symfony/dependency-injection 5.1: The "Symfony\Component\DependencyInjection\ContainerInterface" autowiring alias is deprecated. Define it explicitly in your app if you want to keep using it. It is being referenced by the "symfony_health_check.doctrine_check" service.
Show context Hide trace
{▼
/app/vendor/symfony/dependency-injection/Compiler/ResolveReferencesToAliasesPass.php:68 {▼
Symfony\Component\DependencyInjection\Compiler\ResolveReferencesToAliasesPass->getDefinitionId(string $id, ContainerBuilder $container): string …
› $deprecation = $alias->getDeprecation($id);
› trigger_deprecation($deprecation['package'], $deprecation['version'], rtrim($deprecation['message'], '. ').'. It is being referenced by the "%s" '.($container->hasDefinition($this->currentId) ? 'service.' : 'alias.'), $this->currentId);
› }
}
/app/vendor/symfony/dependency-injection/Compiler/ResolveReferencesToAliasesPass.php:51 {▼
›
› $defId = $this->getDefinitionId($id = (string) $value, $this->container);
›
}
}