for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Happyr\Mq2phpBundle\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
/**
* This is the class that validates and merges configuration from your app/config files.
*/
class Configuration implements ConfigurationInterface
{
* {@inheritdoc}
public function getConfigTreeBuilder()
$treeBuilder = new TreeBuilder();
$root = $treeBuilder->root('happyr_mq2php');
$root
->children()
->booleanNode('enabled')->defaultTrue()->end()
->scalarNode('command_queue')->defaultValue('asynchronous_commands')->end()
->scalarNode('event_queue')->defaultValue('asynchronous_events')->end()
->scalarNode('secret_key')->defaultNull()->info('The secret key is used to verify that the message is valid.')->end()
->arrayNode('message_headers')->addDefaultsIfNotSet()
->scalarNode('http_url')->defaultNull()->end()
->scalarNode('php_bin')->defaultNull()->end()
->scalarNode('dispatch_path')->defaultNull()->end()
->scalarNode('fastcgi_host')->cannotBeEmpty()->defaultValue('localhost')->end()
->scalarNode('fastcgi_port')->defaultValue(9000)->end()
->end()
->end();
return $treeBuilder;
}