private createRetryOperationRunnerDefinition ( |
||
$container | ||
$config | array |
private function createRetryOperationRunnerDefinition(ContainerBuilder $container, $name, array $config)
{
$decoratedRunnerName = $this->createOperationRunnerDefinition($container, $name . '.runner', $config['runner']);
$waiterName = $this->createWaiterDefinition($container, $name . '.waiter', $config['waiter']);
$container->setDefinition($name, $this->createDefinition(RetryOperationRunner::class, [new Reference($decoratedRunnerName), new Reference($waiterName)]));
return $name;
}