Skip to content

Commit cf35f92

Browse files
committed
fix service injection issue.
php-enqueue/enqueue-dev#186
1 parent 1f81cb9 commit cf35f92

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

DependencyInjection/Compiler/AsyncProviderCompilerPass.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function process(ContainerBuilder $container)
2727

2828
$provider = $container->getDefinition($providerId);
2929
$provider->setClass(AsyncDoctrineOrmProvider::class);
30-
$provider->addMethodCall('setContext', [new Reference('enqueue.transport.context')]);
30+
$provider->addMethodCall('setProducer', [new Reference('enqueue.client.producer')]);
3131
}
3232
}
3333
}

Elastica/AsyncDoctrineOrmProvider.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class AsyncDoctrineOrmProvider extends Provider
2121
/**
2222
* @param ProducerInterface $producer
2323
*/
24-
public function setContext(ProducerInterface $producer)
24+
public function setProducer(ProducerInterface $producer)
2525
{
2626
$this->producer = $producer;
2727
}

0 commit comments

Comments
 (0)