We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d58b291 + 3046a13 commit 6d44163Copy full SHA for 6d44163
src/DependencyInjection/CompilerPass/ServiceAliasCompilerPass.php
@@ -30,10 +30,8 @@ public function process(ContainerBuilder $container)
30
{
31
$serviceIds = array_keys($container->findTaggedServiceIds('cache.provider'));
32
foreach ($serviceIds as $serviceId) {
33
- $instance = $container->get($serviceId);
34
- $class = get_class($instance);
35
-
36
- $container->setAlias($class, $serviceId);
+ $definition = $container->getDefinition($serviceId);
+ $container->setAlias($definition->getClass(), $serviceId);
37
}
38
39
0 commit comments