diff --git a/src/DependencyInjection/FOSElasticaExtension.php b/src/DependencyInjection/FOSElasticaExtension.php index e849d47de..5911c2d7f 100644 --- a/src/DependencyInjection/FOSElasticaExtension.php +++ b/src/DependencyInjection/FOSElasticaExtension.php @@ -210,7 +210,7 @@ private function loadIndexes(array $indexes, ContainerBuilder $container): void $container->registerAliasForArgument( $indexId, Index::class, - sprintf('%s.%s', $name, 'index') + \sprintf('%s.%s', $name, 'index') )->setPublic(true); if (isset($index['client'])) { @@ -662,7 +662,7 @@ private function loadTypeFinder(array $typeConfig, ContainerBuilder $container, $container->registerAliasForArgument( $finderId, TransformedFinder::class, - sprintf('%s.%s', $indexName, 'finder') + \sprintf('%s.%s', $indexName, 'finder') )->setPublic(true); }