for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types = 1);
namespace Innmind\Rest\ClientBundle\DependencyInjection;
use Symfony\Component\Config\Definition\{
Builder\TreeBuilder,
ConfigurationInterface
};
final class Configuration implements ConfigurationInterface
{
/**
* {@inheritdoc}
*/
public function getConfigTreeBuilder()
$treeBuilder = new TreeBuilder;
$root = $treeBuilder->root('innmind_rest_client');
$root
->children()
->arrayNode('types')
->defaultValue([])
->prototype('scalar')->end()
->end()
->arrayNode('content_type')
->info('The list of formats you accept in the "Content-Type" response header')
->useAttributeAsKey('name')
->requiresAtLeastOneElement()
->prototype('array')
->integerNode('priority')->end()
->arrayNode('media_types')
->end();
return $treeBuilder;
}