src/PHPDish/Bundle/ResourceBundle/DependencyInjection/AbstractConfiguration.php
protected function addTemplatesSection(ArrayNodeDefinition $rootNode)
    {
        $rootNode
            ->children()
                ->scalarNode('templates_namespace')->defaultNull()->end()
                ->arrayNode('templates')
                    ->scalarPrototype()->end()
                ->end()
            ->end();
    }
protected function addTemplatesSection(ArrayNodeDefinition $rootNode)
    {
        $rootNode
            ->children()
                ->scalarNode('templates_namespace')->defaultNull()->end()
                ->arrayNode('templates')
                    ->scalarPrototype()->end()
                ->end()
            ->end();
    }
添加模板模块配置

@param ArrayNodeDefinition $rootNode