src/Sulu/Bundle/PreviewBundle/DependencyInjection/Configuration.php
private function addRedisNode()
    {
        $builder = new TreeBuilder();
        $node = $builder->root('redis');

        $node
            ->addDefaultsIfNotSet()
            ->children()
                ->scalarNode('connection_id')->defaultNull()->end()
                ->scalarNode('host')->defaultValue('127.0.0.1')->end()
                ->scalarNode('port')->defaultValue('6379')->end()
                ->scalarNode('password')->defaultNull()->end()
                ->scalarNode('timeout')->defaultNull()->end()
                ->scalarNode('database')->defaultNull()->end()
            ->end();

        return $node;
    }
private function addRedisNode()
    {
        $builder = new TreeBuilder();
        $node = $builder->root('redis');

        $node
            ->addDefaultsIfNotSet()
            ->children()
                ->scalarNode('connection_id')->defaultNull()->end()
                ->scalarNode('host')->defaultValue('127.0.0.1')->end()
                ->scalarNode('port')->defaultValue('6379')->end()
                ->scalarNode('password')->defaultNull()->end()
                ->scalarNode('timeout')->defaultNull()->end()
                ->scalarNode('database')->defaultNull()->end()
            ->end();

        return $node;
    }
private function addRedisNode ( ) { $ builder = new TreeBuilder ( ) ; $ node = $ builder -> root ( 'redis' ) ; $ node -> addDefaultsIfNotSet ( ) -> children ( ) -> scalarNode ( 'connection_id' ) -> defaultNull ( ) -> end ( ) -> scalarNode ( 'host' ) -> defaultValue ( '127.0.0.1' ) -> end ( ) -> scalarNode ( 'port' ) -> defaultValue ( '6379' ) -> end ( ) -> scalarNode ( 'password' ) -> defaultNull ( ) -> end ( ) -> scalarNode ( 'timeout' ) -> defaultNull ( ) -> end ( ) -> scalarNode ( 'database' ) -> defaultNull ( ) -> end ( ) -> end ( ) ; return $ node ; }
Build redis node configuration definition.

@return NodeDefinition
Build redis node configuration definition .