src/PHPDish/Bundle/PostBundle/DependencyInjection/Configuration.php
public function addResourcesSection(ArrayNodeDefinition $rootNode)
    {
        $rootNode
            ->children()
                ->arrayNode('resources')
                    ->children()
                        ->arrayNode('post')
                            ->children()
                                ->scalarNode('interface')->defaultValue(PostInterface::class)->cannotBeEmpty()->end()
                                ->scalarNode('model')->defaultValue(Post::class)->cannotBeEmpty()->end()
                            ->end()
                        ->end()
                        ->arrayNode('comment')
                            ->children()
                                ->scalarNode('interface')->defaultValue(CommentInterface::class)->cannotBeEmpty()->end()
                                ->scalarNode('model')->defaultValue(Comment::class)->cannotBeEmpty()->end()
                            ->end()
                        ->end()
                        ->arrayNode('category')
                            ->children()
                                ->scalarNode('interface')->defaultValue(CategoryInterface::class)->cannotBeEmpty()->end()
                                ->scalarNode('model')->defaultValue(Category::class)->cannotBeEmpty()->end()
                            ->end()
                        ->end()
                    ->end()
                ->end()
            ->end();
    }
public function addResourcesSection(ArrayNodeDefinition $rootNode)
    {
        $rootNode
            ->children()
                ->arrayNode('resources')
                    ->children()
                        ->arrayNode('post')
                            ->children()
                                ->scalarNode('interface')->defaultValue(PostInterface::class)->cannotBeEmpty()->end()
                                ->scalarNode('model')->defaultValue(Post::class)->cannotBeEmpty()->end()
                            ->end()
                        ->end()
                        ->arrayNode('comment')
                            ->children()
                                ->scalarNode('interface')->defaultValue(CommentInterface::class)->cannotBeEmpty()->end()
                                ->scalarNode('model')->defaultValue(Comment::class)->cannotBeEmpty()->end()
                            ->end()
                        ->end()
                        ->arrayNode('category')
                            ->children()
                                ->scalarNode('interface')->defaultValue(CategoryInterface::class)->cannotBeEmpty()->end()
                                ->scalarNode('model')->defaultValue(Category::class)->cannotBeEmpty()->end()
                            ->end()
                        ->end()
                    ->end()
                ->end()
            ->end();
    }
{@inheritdoc}