DependencyInjection/Configuration.php
<?php
namespace Daften\Bundle\AddressingBundle\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
class Configuration implements ConfigurationInterface
{
const ROOT_NODE = 'daften_addressing';
const TAG_HANDLER = 'studenteninternet_fsnl.handler';
/**
* {@inheritdoc}
*/
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder(self::ROOT_NODE);
method_exists(TreeBuilder::class, 'getRootNode') ? $treeBuilder->getRootNode() : $treeBuilder->root(self::ROOT_NODE);
return $treeBuilder;
}
}