| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 46 | 
| Code Lines | 41 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 11 | ||
| Bugs | 2 | Features | 2 | 
| 1 | <?php  | 
            ||
| 24 | public function getConfigTreeBuilder()  | 
            ||
| 25 |     { | 
            ||
| 26 | $treeBuilder = new TreeBuilder();  | 
            ||
| 27 |         $rootNode = $treeBuilder->root('my_poseo'); | 
            ||
| 28 | |||
| 29 | $rootNode  | 
            ||
| 30 | ->children()  | 
            ||
| 31 |                 ->arrayNode('api') | 
            ||
| 32 | ->children()  | 
            ||
| 33 |                         ->scalarNode('search_class') | 
            ||
| 34 |                             ->defaultValue('Tristanbes\MyPoseoBundle\Api\Search') | 
            ||
| 35 |                             ->info('Defines the class for the service, useful for tests to avoid real api calls') | 
            ||
| 36 | ->end()  | 
            ||
| 37 |                         ->scalarNode('cache_service_id') | 
            ||
| 38 |                             ->info('Defines the service id of the cache that will be used') | 
            ||
| 39 | ->defaultValue(null)  | 
            ||
| 40 | ->end()  | 
            ||
| 41 |                         ->scalarNode('http_client') | 
            ||
| 42 |                             ->info('service http used to make requests, see php-http') | 
            ||
| 43 | ->defaultValue(null)  | 
            ||
| 44 | ->end()  | 
            ||
| 45 |                         ->scalarNode('key') | 
            ||
| 46 | ->isRequired()  | 
            ||
| 47 |                             ->info('The service is not free. You must provide an API Key which can be found on : http://account.myposeo.com/account/configuration/api') | 
            ||
| 48 | ->end()  | 
            ||
| 49 |                         ->arrayNode('type') | 
            ||
| 50 |                             ->prototype('array') | 
            ||
| 51 | ->children()  | 
            ||
| 52 |                                 ->scalarNode('base_url') | 
            ||
| 53 | ->isRequired()  | 
            ||
| 54 |                                     ->defaultValue('http://api.myposeo.com/1.1/m/api/') | 
            ||
| 55 |                                     ->info('The API version you want to use') | 
            ||
| 56 | ->end()  | 
            ||
| 57 |                                 ->booleanNode('cache') | 
            ||
| 58 | ->defaultTrue()  | 
            ||
| 59 | ->end()  | 
            ||
| 60 |                                 ->scalarNode('cache_ttl')->end() | 
            ||
| 61 | ->end()  | 
            ||
| 62 | ->end()  | 
            ||
| 63 | ->end()  | 
            ||
| 64 | ->end()  | 
            ||
| 65 | ->end()  | 
            ||
| 66 | ;  | 
            ||
| 67 | |||
| 68 | return $treeBuilder;  | 
            ||
| 69 | }  | 
            ||
| 70 | }  | 
            ||
| 71 |