for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace CallCenter\Bundle\CommonBundle\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
class Configuration implements ConfigurationInterface
{
private $debug;
/**
* @param bool $debug Whether debugging is enabled or not
*/
public function __construct($debug)
$this->debug = (bool) $debug;
}
* {@inheritdoc}
public function getConfigTreeBuilder()
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('call_center_platform');
$rootNode
->children()
->arrayNode('twitter')
->integerNode('client_id')->end()
->scalarNode('client_secret')->end()
->end()
;
return $treeBuilder;