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\BenGorFileBundle\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_ben_gor_file_bridge')
->children()
->arrayNode('file_types')
->prototype('array')
->arrayNode('upload_endpoint')->addDefaultsIfNotSet()
->scalarNode('path')
->defaultValue(null)
->end()
->scalarNode('name')
->arrayNode('gallery_endpoint')->addDefaultsIfNotSet()
->end();
return $treeBuilder;
}