for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of Sulu.
*
* (c) MASSIVE ART WebServices GmbH
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Sulu\Bundle\ArticleBundle\DependencyInjection;
use Sulu\Bundle\ArticleBundle\Document\ArticleViewDocument;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
/**
* Initializes configuration tree for article-bundle.
class Configuration implements ConfigurationInterface
{
* {@inheritdoc}
public function getConfigTreeBuilder()
$treeBuilder = new TreeBuilder();
$treeBuilder->root('sulu_article')
->children()
->arrayNode('content_types')
->addDefaultsIfNotSet()
->arrayNode('article')
->scalarNode('template')
->defaultValue('SuluArticleBundle:Template:content-types/article-selection.html.twig')
->end()
->arrayNode('page_tree_route')
->defaultValue('SuluArticleBundle:Template:content-types/page-tree-route.html.twig')
->arrayNode('documents')
->scalarNode('view')->defaultValue(ArticleViewDocument::class)->end()
->arrayNode('types')
->useAttributeAsKey('name')
->prototype('array')
->scalarNode('translation_key')->end()
->scalarNode('display_tab_all')->defaultTrue()->info("Display tab 'all' in list view")->end()
->end();
return $treeBuilder;
}