DependencyInjection/CompilerPass/RepositoryCompilerPass.php
private function createClientRetryMap(
        ContainerBuilder $container,
        string $name,
        array $repositoryConfiguration
    ) {
        if (!$this->repositoryIsHttp($repositoryConfiguration)) {
            return;
        }

        $clientRetryMapName = rtrim("apisearch.retry_map_$name", '.');
        $container
                ->register($clientRetryMapName, RetryMap::class)
                ->setFactory([
                    RetryMap::class,
                    'createFromArray',
                ])
                ->setArgument(0, $repositoryConfiguration['http']['retry_map']);
    }
private function createClientRetryMap(
        ContainerBuilder $container,
        string $name,
        array $repositoryConfiguration
    ) {
        if (!$this->repositoryIsHttp($repositoryConfiguration)) {
            return;
        }

        $clientRetryMapName = rtrim("apisearch.retry_map_$name", '.');
        $container
                ->register($clientRetryMapName, RetryMap::class)
                ->setFactory([
                    RetryMap::class,
                    'createFromArray',
                ])
                ->setArgument(0, $repositoryConfiguration['http']['retry_map']);
    }
private function createClientRetryMap ( ContainerBuilder $ container , string $ name , array $ repositoryConfiguration ) { if ( ! $ this -> repositoryIsHttp ( $ repositoryConfiguration ) ) { return ; } $ clientRetryMapName = rtrim ( "apisearch.retry_map_$name" , '.' ) ; $ container -> register ( $ clientRetryMapName , RetryMap :: class ) -> setFactory ( [ RetryMap :: class , 'createFromArray' , ] ) -> setArgument ( 0 , $ repositoryConfiguration [ 'http' ] [ 'retry_map' ] ) ; }
Create client retry map.

@param ContainerBuilder $container
@param string           $name
@param string           $name
@param array            $repositoryConfiguration
Create client retry map .