Configuration   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 12
dl 0
loc 20
rs 10
c 1
b 0
f 0
ccs 11
cts 11
cp 1
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getConfigTreeBuilder() 0 15 1
1
<?php
2
3
namespace Azine\SocialBarBundle\DependencyInjection;
4
5
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
6
use Symfony\Component\Config\Definition\ConfigurationInterface;
7
8
/**
9
 * This is the class that validates and merges configuration from your app/config files.
10
 *
11
 * To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html#cookbook-bundles-extension-config-class}
12
 */
13
class Configuration implements ConfigurationInterface
14
{
15
    /**
16
     * {@inheritdoc}
17
     */
18 1
    public function getConfigTreeBuilder()
19
    {
20 1
        $treeBuilder = new TreeBuilder();
21 1
        $rootNode = $treeBuilder->root('azine_social_bar');
22
23
        $rootNode
24 1
            ->children()
25 1
                ->scalarNode(AzineSocialBarExtension::FB_PROFILE)->defaultValue('')->info("the url to you Facebook profile: will be used for the 'url' parameter when showing the 'follow' button")->end()
26 1
                ->scalarNode(AzineSocialBarExtension::GOOGLE_PLUS_PROFILE)->defaultValue('')->info("the url to your Google+ profile: will be used for the 'url' parameter when showing the 'follow' button")->end()
27 1
                ->scalarNode(AzineSocialBarExtension::XING_PROFILE)->defaultValue('')->info("the url to your xing profile: will be used for the 'url' parameter when showing the 'follow' button")->end()
28 1
                ->scalarNode(AzineSocialBarExtension::LINKED_IN_PROFILE)->defaultValue('')->info("your profile-id (=> get it here http://developer.linkedin.com/plugins) : will be used for the 'companyId' parameter when showing the 'follow' button")->end()
29 1
                ->scalarNode(AzineSocialBarExtension::TWITTER_PROFILE)->defaultValue('')->info("your twitter username: will be used for the 'action' parameter when showing the 'follow' button and also for the 'tag' and 'via' parameters of all twitter buttons ")->end()
30 1
                ->end();
31
32 1
        return $treeBuilder;
33
    }
34
}
35