| Conditions | 1 |
| Paths | 1 |
| Total Lines | 27 |
| Code Lines | 24 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 40 | { |
||
| 41 | $node |
||
| 42 | ->children() |
||
| 43 | ->arrayNode('api') |
||
| 44 | ->addDefaultsIfNotSet() |
||
| 45 | ->children() |
||
| 46 | ->scalarNode('app_id')->isRequired()->end() |
||
| 47 | ->scalarNode('shared_secret')->isRequired()->end() |
||
| 48 | ->scalarNode('endpoint')->defaultValue('http://ws.audioscrobbler.com/2.0/')->end() |
||
| 49 | ->scalarNode('auth_url')->defaultValue('http://www.last.fm/api/auth/')->end() |
||
| 50 | ->end() |
||
| 51 | ->end() |
||
| 52 | ->end(); |
||
| 53 | } |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @param ArrayNodeDefinition $node |
||
| 57 | */ |
||
| 58 | private function addHttpClientSection(ArrayNodeDefinition $node): void |
||
| 59 | { |
||
| 60 | $node |
||
| 61 | ->children() |
||
| 62 | ->arrayNode('http') |
||
| 63 | ->addDefaultsIfNotSet() |
||
| 64 | ->children() |
||
| 65 | ->scalarNode('client')->defaultValue('httplug.client.default')->end() |
||
| 66 | ->scalarNode('message_factory')->defaultValue('httplug.message_factory.default')->end() |
||
| 67 | ->end() |
||
| 73 |