src/DependencyInjection/Configuration.php
private function addSessionSupportSection()
    {
        $tree = new TreeBuilder();
        $node = $tree->root('session');

        $node
            ->canBeEnabled()
            ->addDefaultsIfNotSet()
            ->children()
                ->scalarNode('service_id')->isRequired()->end()
                ->booleanNode('use_tagging')->defaultTrue()->end()
                ->scalarNode('prefix')->defaultValue('session_')->end()
                ->scalarNode('ttl')->end()
            ->end();

        $this->normalizeEnabled($node);

        return $node;
    }
private function addSessionSupportSection()
    {
        $tree = new TreeBuilder();
        $node = $tree->root('session');

        $node
            ->canBeEnabled()
            ->addDefaultsIfNotSet()
            ->children()
                ->scalarNode('service_id')->isRequired()->end()
                ->booleanNode('use_tagging')->defaultTrue()->end()
                ->scalarNode('prefix')->defaultValue('session_')->end()
                ->scalarNode('ttl')->end()
            ->end();

        $this->normalizeEnabled($node);

        return $node;
    }
private function addSessionSupportSection ( ) { $ tree = new TreeBuilder ( ) ; $ node = $ tree -> root ( 'session' ) ; $ node -> canBeEnabled ( ) -> addDefaultsIfNotSet ( ) -> children ( ) -> scalarNode ( 'service_id' ) -> isRequired ( ) -> end ( ) -> booleanNode ( 'use_tagging' ) -> defaultTrue ( ) -> end ( ) -> scalarNode ( 'prefix' ) -> defaultValue ( 'session_' ) -> end ( ) -> scalarNode ( 'ttl' ) -> end ( ) -> end ( ) ; $ this -> normalizeEnabled ( $ node ) ; return $ node ; }
Configure the "cache.session" section.

@return ArrayNodeDefinition
Configure the cache . session section .