private function loadConfiguration($name, array $restConfig, ContainerBuilder $container)
    {
        $definition = new Definition(
            Utility::getLibraryClass('Rest\RestConfiguration'),
            [
                new Reference(Utility::getAliasedName('util.validator')),
            ]
        );
        $definition->setPublic(false);

        $endpoint = $restConfig['root_endpoint'];
        $definition->addMethodCall('setRootEndpoint', [$endpoint]);

        $container->setDefinition($name, $definition);
        $container->setParameter(Utility::getAliasedName('rest.root_endpoint'), $endpoint);
        return $this;
    }
private function loadConfiguration($name, array $restConfig, ContainerBuilder $container)
    {
        $definition = new Definition(
            Utility::getLibraryClass('Rest\RestConfiguration'),
            [
                new Reference(Utility::getAliasedName('util.validator')),
            ]
        );
        $definition->setPublic(false);

        $endpoint = $restConfig['root_endpoint'];
        $definition->addMethodCall('setRootEndpoint', [$endpoint]);

        $container->setDefinition($name, $definition);
        $container->setParameter(Utility::getAliasedName('rest.root_endpoint'), $endpoint);
        return $this;
    }
private function loadConfiguration ( $ name , array $ restConfig , ContainerBuilder $ container ) { $ definition = new Definition ( Utility :: getLibraryClass ( 'Rest\RestConfiguration' ) , [ new Reference ( Utility :: getAliasedName ( 'util.validator' ) ) , ] ) ; $ definition -> setPublic ( false ) ; $ endpoint = $ restConfig [ 'root_endpoint' ] ; $ definition -> addMethodCall ( 'setRootEndpoint' , [ $ endpoint ] ) ; $ container -> setDefinition ( $ name , $ definition ) ; $ container -> setParameter ( Utility :: getAliasedName ( 'rest.root_endpoint' ) , $ endpoint ) ; return $ this ; }
Loads the Rest config service based on the config.

@param   string              $name
@param   array               $restConfig
@param   ContainerBuilder    $container
@return  self
Loads the Rest config service based on the config .