for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the ni-ju-san CMS.
*
* (c) Christian Gripp <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Core23\PiwikBundle\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
class Configuration implements ConfigurationInterface
{
/**
* {@inheritdoc}
public function getConfigTreeBuilder()
$treeBuilder = new TreeBuilder();
$node = $treeBuilder->root('core23_piwik');
$this->addHttpClientSection($node);
return $treeBuilder;
}
* @param ArrayNodeDefinition $node
private function addHttpClientSection(ArrayNodeDefinition $node)
$node
->children()
->arrayNode('http')
->addDefaultsIfNotSet()
->scalarNode('client')->defaultValue('httplug.client.default')->end()
->scalarNode('message_factory')->defaultValue('httplug.message_factory.default')->end()
->end()
;