<commit_before><?php

namespace RealestateCoNz\ApiClientBundle\DependencyInjection;

use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;

/**
 *
 */
class Configuration implements ConfigurationInterface
{
    /**
     * {@inheritDoc}
     */
    public function getConfigTreeBuilder()
    {
        $treeBuilder = new TreeBuilder();
        $rootNode = $treeBuilder->root('realestateconz_apiclient');

        $rootNode
            ->useAttributeAsKey('name')
            ->prototype('array')
                ->children()
                    ->scalarNode('name')->defaultValue('default')->end()
                    ->scalarNode('host')->defaultValue('api.realestate.co.nz')->end()
                    ->scalarNode('version')->defaultValue('1')->end()
                    ->scalarNode('public_key')->end()
                    ->scalarNode('private_key')->end()
                ->end()
            ->end()->end()
        ;
        
        return $treeBuilder;
    }<commit_msg>Update Configuration to support setting a class (already supported in the Extension...)<commit_after><?php

namespace RealestateCoNz\ApiClientBundle\DependencyInjection;

use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;

/**
 *
 */
class Configuration implements ConfigurationInterface
{
    /**
     * {@inheritDoc}
     */
    public function getConfigTreeBuilder()
    {
        $treeBuilder = new TreeBuilder();
        $rootNode = $treeBuilder->root('realestateconz_apiclient');

        $rootNode
            ->useAttributeAsKey('name')
            ->prototype('array')
                ->children()
                    ->scalarNode('class')->defaultNull()->end()
                    ->scalarNode('name')->defaultValue('default')->end()
                    ->scalarNode('host')->defaultValue('api.realestate.co.nz')->end()
                    ->scalarNode('version')->defaultValue('1')->end()
                    ->scalarNode('public_key')->end()
                    ->scalarNode('private_key')->end()
                ->end()
            ->end()->end()
        ;
        
        return $treeBuilder;
    }
{'fraction_non_alphanumeric': 0.14892665474060823, 'fraction_numerical': 0.0008944543828264759, 'mean_word_length': 2.1911554921540657, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 46, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2999332', 'n_tokens_mistral': 569, 'n_tokens_neox': 551, 'n_words': 78}