for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Indigo\Bundle\CookieConsentBundle\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
/**
* @author Márk Sági-Kazár <[email protected]>
*/
class Configuration implements ConfigurationInterface
{
public function getConfigTreeBuilder()
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('indigo_cookie_consent');
$rootNode
->children()
->arrayNode('options')
->addDefaultsIfNotSet()
->info('See valid options at https://silktide.com/tools/cookie-consent/docs/installation')
->scalarNode('link')->end()
->scalarNode('container')->end()
->scalarNode('theme')->end()
->scalarNode('path')->end()
->scalarNode('domain')->end()
->integerNode('expiryDays')->end()
->scalarNode('target')->end()
->end()
->scalarNode('script')
->defaultValue('//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/1.0.10/cookieconsent.min.js')
->info('Set this to false to disable script (eg. when you compiled it into yours)')
;
return $treeBuilder;
}