DependencyInjection/DCSOpauthExtension.php
public function load(array $configs, ContainerBuilder $container)
    {
        $configuration = new Configuration();
        $config = $this->processConfiguration($configuration, $configs);

        $container->setParameter('dcs_opauth.call_params', array(
            'debug_mode' => $config['debug_mode'],
            'callback_transport' => $config['callback_transport'],
            'security_iteration' => $config['security_iteration'],
            'security_timeout' => $config['security_timeout'],
        ));
        $container->setParameter('dcs_opauth.authentication_roles', $config['authentication_roles']);
        $container->setParameter('dcs_opauth.redirect_after_response', $config['redirect_after_response']);
        $container->setParameter('dcs_opauth.error_view', $config['error_view']);

        $container->setAlias('dcs_opauth.strategy_parser', $config['logic']['strategy_parser']);
        $container->setAlias('dcs_opauth.response_parser', $config['logic']['response_parser']);
        $container->setAlias('dcs_opauth.authenticator', $config['logic']['authenticator']);

        $strategies = $this->buildStrategiesKey($config['strategies']);
        $container->setParameter('dcs_opauth.strategies', $strategies);

        $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
        $loader->load('services.xml');
    }
public function load(array $configs, ContainerBuilder $container)
    {
        $configuration = new Configuration();
        $config = $this->processConfiguration($configuration, $configs);

        $container->setParameter('dcs_opauth.call_params', array(
            'debug_mode' => $config['debug_mode'],
            'callback_transport' => $config['callback_transport'],
            'security_iteration' => $config['security_iteration'],
            'security_timeout' => $config['security_timeout'],
        ));
        $container->setParameter('dcs_opauth.authentication_roles', $config['authentication_roles']);
        $container->setParameter('dcs_opauth.redirect_after_response', $config['redirect_after_response']);
        $container->setParameter('dcs_opauth.error_view', $config['error_view']);

        $container->setAlias('dcs_opauth.strategy_parser', $config['logic']['strategy_parser']);
        $container->setAlias('dcs_opauth.response_parser', $config['logic']['response_parser']);
        $container->setAlias('dcs_opauth.authenticator', $config['logic']['authenticator']);

        $strategies = $this->buildStrategiesKey($config['strategies']);
        $container->setParameter('dcs_opauth.strategies', $strategies);

        $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
        $loader->load('services.xml');
    }
{@inheritDoc}