Skip to content

Commit a051134

Browse files
authored
Merge pull request #306 from norkunas/clean
Remove unnecessary version check for `registerAliasForArgument`
2 parents 4274c84 + de3f4a8 commit a051134

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

DependencyInjection/BazingaGeocoderExtension.php

+1-4
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
3434
use Symfony\Component\DependencyInjection\Reference;
3535
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
36-
use Symfony\Component\HttpKernel\Kernel;
3736

3837
/**
3938
* @author William Durand <[email protected]>.
@@ -104,9 +103,7 @@ private function loadProviders(ContainerBuilder $container, array $config)
104103
$container->setAlias($alias, $serviceId);
105104
}
106105

107-
if (Kernel::VERSION_ID > 40200) {
108-
$container->registerAliasForArgument($serviceId, Provider::class, "{$providerName}Geocoder");
109-
}
106+
$container->registerAliasForArgument($serviceId, Provider::class, "{$providerName}Geocoder");
110107
}
111108
}
112109

0 commit comments

Comments
 (0)