for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace EmanueleMinotto\DomainParserBundle\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
/**
* {@inheritdoc}
*/
class Configuration implements ConfigurationInterface
{
public function getConfigTreeBuilder()
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('domain_parser');
$rootNode
->children()
->scalarNode('cache_dir')
->defaultNull()
->info('Directory where text and php versions of list will be cached')
->end()
->scalarNode('http_adapter')
->info('HTTP adapter (must implement \Pdp\HttpAdapter\HttpAdapterInterface)')
->end();
return $treeBuilder;
}