for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the Meup TagCommander Bundle.
*
* (c) 1001pharmacies <http://github.com/1001pharmacies/tagcommander-bundle>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Meup\Bundle\TagcommanderBundle\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
class Configuration implements ConfigurationInterface
{
* {@inheritDoc}
public function getConfigTreeBuilder()
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('meup_tagcommander');
$rootNode
->children()
->scalarNode('default_event')
->defaultValue('default')
->end()
->arrayNode('datalayer')
->scalarNode('name')
->defaultValue('tc_vars')
->variableNode('default')->end()
->arrayNode('containers')
->isRequired()
->requiresAtLeastOneElement()
->prototype('array')
->scalarNode('script')
->scalarNode('version')
->defaultValue('')
->scalarNode('alternative')
->arrayNode('events')
->scalarNode('name')->end()
->scalarNode('function')->end()
;
return $treeBuilder;
}