src/DependencyInjection/SurfnetSamlExtension.php
private function parseHostedConfiguration(array $configuration, ContainerBuilder $container)
    {
        $entityId = ['entity_id_route' => $configuration['metadata']['entity_id_route']];
        $serviceProvider  = array_merge($configuration['service_provider'], $entityId);
        $identityProvider = array_merge($configuration['identity_provider'], $entityId);

        $container
            ->getDefinition('surfnet_saml.saml.attribute_dictionary')
            ->replaceArgument(0, $configuration['attribute_dictionary']['ignore_unknown_attributes']);

        $this->parseHostedSpConfiguration($serviceProvider, $container);
        $this->parseHostedIdpConfiguration($identityProvider, $container);
        $this->parseMetadataConfiguration($configuration, $container);
    }
private function parseHostedConfiguration(array $configuration, ContainerBuilder $container)
    {
        $entityId = ['entity_id_route' => $configuration['metadata']['entity_id_route']];
        $serviceProvider  = array_merge($configuration['service_provider'], $entityId);
        $identityProvider = array_merge($configuration['identity_provider'], $entityId);

        $container
            ->getDefinition('surfnet_saml.saml.attribute_dictionary')
            ->replaceArgument(0, $configuration['attribute_dictionary']['ignore_unknown_attributes']);

        $this->parseHostedSpConfiguration($serviceProvider, $container);
        $this->parseHostedIdpConfiguration($identityProvider, $container);
        $this->parseMetadataConfiguration($configuration, $container);
    }
private function parseHostedConfiguration ( array $ configuration , ContainerBuilder $ container ) { $ entityId = [ 'entity_id_route' => $ configuration [ 'metadata' ] [ 'entity_id_route' ] ] ; $ serviceProvider = array_merge ( $ configuration [ 'service_provider' ] , $ entityId ) ; $ identityProvider = array_merge ( $ configuration [ 'identity_provider' ] , $ entityId ) ; $ container -> getDefinition ( 'surfnet_saml.saml.attribute_dictionary' ) -> replaceArgument ( 0 , $ configuration [ 'attribute_dictionary' ] [ 'ignore_unknown_attributes' ] ) ; $ this -> parseHostedSpConfiguration ( $ serviceProvider , $ container ) ; $ this -> parseHostedIdpConfiguration ( $ identityProvider , $ container ) ; $ this -> parseMetadataConfiguration ( $ configuration , $ container ) ; }
Creates and register MetadataConfiguration object based on the configuration given.

@param array $configuration
@param ContainerBuilder $container
Creates and register MetadataConfiguration object based on the configuration given .