for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the CMS Kernel package.
*
* Copyright (c) 2016-present LIN3S <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace LIN3S\CMSKernel\Infrastructure\Lin3sAdminBundle\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
/**
* @author Beñat Espiña <[email protected]>
class Configuration implements ConfigurationInterface
{
public function getConfigTreeBuilder()
$treeBuilder = new TreeBuilder();
$treeBuilder->root('cms_kernel_admin_bridge')
->children()
->scalarNode('user_type')->defaultValue('user')->end()
->arrayNode('locales')
->scalarNode('default')
->isRequired(true)
->end()
->arrayNode('others')
->prototype('scalar')->end()
->end();
return $treeBuilder;
}