Failed Conditions
Push — master ( 16c088...f6878d )
by Florent
02:11
created

AbstractJWKSetSource::addConfiguration()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 11
rs 9.4285
cc 1
eloc 9
nc 1
nop 1
1
<?php
2
3
/*
4
 * The MIT License (MIT)
5
 *
6
 * Copyright (c) 2014-2016 Spomky-Labs
7
 *
8
 * This software may be modified and distributed under the terms
9
 * of the MIT license.  See the LICENSE file for details.
10
 */
11
12
namespace SpomkyLabs\JoseBundle\DependencyInjection\Source\JWKSetSource;
13
14
use Symfony\Component\Config\Definition\Builder\NodeDefinition;
15
16
abstract class AbstractJWKSetSource
17
{
18
    /**
19
     * @param \Symfony\Component\Config\Definition\Builder\NodeDefinition $node
20
     */
21
    public function addConfiguration(NodeDefinition $node)
22
    {
23
        parent::addConfiguration($node);
24
        $node
25
            ->children()
26
                ->booleanNode('is_shared')
27
                    ->info('If true, a controller will be created to ease the JWKSet to be shared.')
28
                    ->defaultFalse()
29
                ->end()
30
            ->end();
31
    }
32
}
33