protected function loadSession(array $config, ContainerBuilder $container, XmlFileLoader $loader)
    {
        $loader->load('session.xml');

        $container->setParameter('snc_redis.session.client', $config['session']['client']);
        $container->setParameter('snc_redis.session.prefix', $config['session']['prefix']);
        $container->setParameter('snc_redis.session.locking', $config['session']['locking']);
        $container->setParameter('snc_redis.session.spin_lock_wait', $config['session']['spin_lock_wait']);

        $client = $container->getParameter('snc_redis.session.client');

        $client = sprintf('snc_redis.%s', $client);

        $container->setAlias('snc_redis.session.client', $client);

        if (isset($config['session']['ttl'])) {
            $definition = $container->getDefinition('snc_redis.session.handler');
            $definition->addMethodCall('setTtl', array($config['session']['ttl']));
        }
    }
protected function loadSession(array $config, ContainerBuilder $container, XmlFileLoader $loader)
    {
        $loader->load('session.xml');

        $container->setParameter('snc_redis.session.client', $config['session']['client']);
        $container->setParameter('snc_redis.session.prefix', $config['session']['prefix']);
        $container->setParameter('snc_redis.session.locking', $config['session']['locking']);
        $container->setParameter('snc_redis.session.spin_lock_wait', $config['session']['spin_lock_wait']);

        $client = $container->getParameter('snc_redis.session.client');

        $client = sprintf('snc_redis.%s', $client);

        $container->setAlias('snc_redis.session.client', $client);

        if (isset($config['session']['ttl'])) {
            $definition = $container->getDefinition('snc_redis.session.handler');
            $definition->addMethodCall('setTtl', array($config['session']['ttl']));
        }
    }
protected function loadSession ( array $ config , ContainerBuilder $ container , XmlFileLoader $ loader ) { $ loader -> load ( 'session.xml' ) ; $ container -> setParameter ( 'snc_redis.session.client' , $ config [ 'session' ] [ 'client' ] ) ; $ container -> setParameter ( 'snc_redis.session.prefix' , $ config [ 'session' ] [ 'prefix' ] ) ; $ container -> setParameter ( 'snc_redis.session.locking' , $ config [ 'session' ] [ 'locking' ] ) ; $ container -> setParameter ( 'snc_redis.session.spin_lock_wait' , $ config [ 'session' ] [ 'spin_lock_wait' ] ) ; $ client = $ container -> getParameter ( 'snc_redis.session.client' ) ; $ client = sprintf ( 'snc_redis.%s' , $ client ) ; $ container -> setAlias ( 'snc_redis.session.client' , $ client ) ; if ( isset ( $ config [ 'session' ] [ 'ttl' ] ) ) { $ definition = $ container -> getDefinition ( 'snc_redis.session.handler' ) ; $ definition -> addMethodCall ( 'setTtl' , array ( $ config [ 'session' ] [ 'ttl' ] ) ) ; } }
Loads the session configuration.

@param array            $config    A configuration array
@param ContainerBuilder $container A ContainerBuilder instance
@param XmlFileLoader    $loader    A XmlFileLoader instance
Loads the session configuration .