src/PHPDish/Bundle/ForumBundle/DependencyInjection/Configuration.php
public function getConfigTreeBuilder()
    {
        $treeBuilder = new TreeBuilder();
        $rootNode = $treeBuilder->root('phpdish_forum');

        $rootNode
            ->children()
                ->arrayNode('resources')
                    ->children()
                        ->arrayNode('topic')
                            ->children()
                                ->scalarNode('interface')->defaultValue(TopicInterface::class)->cannotBeEmpty()->end()
                                ->scalarNode('model')->defaultValue(Topic::class)->cannotBeEmpty()->end()
                            ->end()
                        ->end()
                        ->arrayNode('reply')
                            ->children()
                                ->scalarNode('interface')->defaultValue(ReplyInterface::class)->cannotBeEmpty()->end()
                                ->scalarNode('model')->defaultValue(Reply::class)->cannotBeEmpty()->end()
                            ->end()
                        ->end()
                        ->arrayNode('thread')
                            ->children()
                                ->scalarNode('interface')->defaultValue(ThreadInterface::class)->cannotBeEmpty()->end()
                                ->scalarNode('model')->defaultValue(Thread::class)->cannotBeEmpty()->end()
                            ->end()
                        ->end()
                    ->end()
                ->end()
            ->end();

        $this->addTemplatesSection($rootNode);
        return $treeBuilder;
    }
public function getConfigTreeBuilder()
    {
        $treeBuilder = new TreeBuilder();
        $rootNode = $treeBuilder->root('phpdish_forum');

        $rootNode
            ->children()
                ->arrayNode('resources')
                    ->children()
                        ->arrayNode('topic')
                            ->children()
                                ->scalarNode('interface')->defaultValue(TopicInterface::class)->cannotBeEmpty()->end()
                                ->scalarNode('model')->defaultValue(Topic::class)->cannotBeEmpty()->end()
                            ->end()
                        ->end()
                        ->arrayNode('reply')
                            ->children()
                                ->scalarNode('interface')->defaultValue(ReplyInterface::class)->cannotBeEmpty()->end()
                                ->scalarNode('model')->defaultValue(Reply::class)->cannotBeEmpty()->end()
                            ->end()
                        ->end()
                        ->arrayNode('thread')
                            ->children()
                                ->scalarNode('interface')->defaultValue(ThreadInterface::class)->cannotBeEmpty()->end()
                                ->scalarNode('model')->defaultValue(Thread::class)->cannotBeEmpty()->end()
                            ->end()
                        ->end()
                    ->end()
                ->end()
            ->end();

        $this->addTemplatesSection($rootNode);
        return $treeBuilder;
    }
{@inheritdoc}