Skip to content

Commit cd52b3a

Browse files
committed
setup correct autowiring
1 parent 1fb7895 commit cd52b3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DependencyInjection/Neo4jExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function load(array $configs, ContainerBuilder $container): ContainerBuil
5454

5555
if (0 !== count($enabledProfiles)) {
5656
$container->setDefinition('neo4j.data_collector', (new Definition(Neo4jDataCollector::class))
57-
->setArgument(0, new Reference('neo4j.client_factory'))
57+
->setAutowired(true)
5858
->addTag('data_collector')
5959
);
6060

0 commit comments

Comments
 (0)